Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DiUS/java-faker
/ capitalCity
Method
capitalCity
src/test/java/com/github/javafaker/NationTest.java:22–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
}
21
22
@Test
23
public
void
capitalCity() {
24
assertThat(faker.nation().capitalCity(), matchesRegularExpression(
"[A-Za-z .'()-]+"
));
25
}
26
27
@Test
28
public
void
flag() {
Callers
nothing calls this directly
Calls
2
nation
Method · 0.80
matchesRegularExpression
Method · 0.80
Tested by
no test coverage detected