Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ tRemove
Method
tRemove
annotations/HashSetTest.java:23–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
assert testObject.contains(
"one"
);
22
}
23
@Test
24
void
tRemove() {
25
testObject.add(
"one"
);
26
testObject.remove(
"one"
);
27
assert testObject.isEmpty();
28
}
29
}
30
/* Output:
31
annotations.HashSetTest
Callers
nothing calls this directly
Calls
3
isEmpty
Method · 0.80
add
Method · 0.45
remove
Method · 0.45
Tested by
no test coverage detected