@CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNull_unsupported() { E[] array = createArrayWithNullElement(); try { getSubjectGenerator().create(array); fail("Creating a collection containing null should fail"); } catch (NullPointerException expected) { } }
@CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNull_supported() { E[] array = createArrayWithNullElement(); collection = getSubjectGenerator().create(array); expectContents(array); }
@Override protected Collection<Method> suppressForTreeSetNatural() { return Arrays.asList( getAddNullUnsupportedMethod(), getAddAllNullUnsupportedMethod(), getCreateWithNullUnsupportedMethod()); }
@CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNull_unsupported() { E[] array = createArrayWithNullElement(); try { getSubjectGenerator().create(array); fail("Creating a collection containing null should fail"); } catch (NullPointerException expected) { } }
@CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNull_supported() { E[] array = createArrayWithNullElement(); collection = getSubjectGenerator().create(array); expectContents(array); }
@Override protected Collection<Method> suppressForTreeMapNatural() { return Arrays.asList( getPutNullKeyUnsupportedMethod(), getPutAllNullKeyUnsupportedMethod(), getCreateWithNullKeyUnsupportedMethod(), getCreateWithNullUnsupportedMethod(), // for keySet getContainsEntryWithIncomparableKeyMethod(), getContainsEntryWithIncomparableValueMethod()); }
@CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNull_unsupported() { E[] array = createArrayWithNullElement(); try { getSubjectGenerator().create(array); fail("Creating a collection containing null should fail"); } catch (NullPointerException expected) { } }
@CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNull_supported() { E[] array = createArrayWithNullElement(); collection = getSubjectGenerator().create(array); expectContents(array); }
@Override protected Collection<Method> suppressForTreeSetNatural() { return Arrays.asList( getAddNullUnsupportedMethod(), getAddAllNullUnsupportedMethod(), getCreateWithNullUnsupportedMethod()); }
@Override protected Collection<Method> suppressForTreeSetNatural() { return Arrays.asList( getAddNullUnsupportedMethod(), getAddAllNullUnsupportedMethod(), getCreateWithNullUnsupportedMethod()); }
@Override protected Collection<Method> suppressForTreeMapNatural() { return Arrays.asList( getPutNullKeyUnsupportedMethod(), getPutAllNullKeyUnsupportedMethod(), getCreateWithNullKeyUnsupportedMethod(), getCreateWithNullUnsupportedMethod(), // for keySet getContainsEntryWithIncomparableKeyMethod(), getContainsEntryWithIncomparableValueMethod()); }
@Override protected Collection<Method> suppressForTreeMapNatural() { return Arrays.asList( getPutNullKeyUnsupportedMethod(), getPutAllNullKeyUnsupportedMethod(), getCreateWithNullKeyUnsupportedMethod(), getCreateWithNullUnsupportedMethod(), // for keySet getContainsEntryWithIncomparableKeyMethod(), getContainsEntryWithIncomparableValueMethod()); }