File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
async/async-commons/src/test/java/org/reactivecommons/async/commons/utils Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ import org .junit .jupiter .api .BeforeEach ;
2+ import org .junit .jupiter .api .Test ;
3+
4+ import static org .junit .jupiter .api .Assertions .*;
5+
6+ class NameGeneratorTest {
7+
8+ private NameGenerator nameGenerator ;
9+
10+ @ Test
11+ void generateNameFromWithoutSuffix () {
12+ String result = NameGenerator .generateNameFrom ("application" );
13+ assertFalse (result .contains ("=" ));
14+ assertTrue (result .startsWith ("application--" ));
15+ assertEquals (35 , result .length ());
16+ }
17+
18+ @ Test
19+ void generateNameFromWithSuffix () {
20+ String result = NameGenerator .generateNameFrom ("application" , "suffix" );
21+ assertFalse (result .contains ("=" ));
22+ assertTrue (result .startsWith ("application-suffix-" ));
23+ assertEquals (41 , result .length ());
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments