Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ initialization
Method
initialization
annotations/HashSetTest.java:14–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
public
class
HashSetTest {
13
HashSet<String> testObject =
new
HashSet<>();
14
@Test
15
void
initialization() {
16
assert testObject.isEmpty();
17
}
18
@Test
19
void
tContains() {
20
testObject.add(
"one"
);
Callers
nothing calls this directly
Calls
1
isEmpty
Method · 0.80
Tested by
no test coverage detected