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