MCPcopy Create free account
hub / github.com/ReadyTalk/avian / testCopyOf

Method testCopyOf

test/EnumSetTest.java:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 private static void testCopyOf() {
38 EnumSet<SmallEnum> one = EnumSet.of(SmallEnum.ONE, SmallEnum.THREE);
39 EnumSet<SmallEnum> two = EnumSet.copyOf(one);
40 assertElementInSet(SmallEnum.ONE, two);
41 assertElementInSet(SmallEnum.THREE, two);
42 assertSize(2, two);
43 }
44
45 private static void testOf() {
46 EnumSet<LargerEnum> set = EnumSet.of(LargerEnum.LARGEONE, LargerEnum.LARGEFIVE, LargerEnum.LARGETWO);

Callers 1

mainMethod · 0.95

Calls 4

ofMethod · 0.95
copyOfMethod · 0.95
assertElementInSetMethod · 0.95
assertSizeMethod · 0.95

Tested by

no test coverage detected