File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/test/java/com/amadeus Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .amadeus ;
2
2
3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
4
5
import static org .junit .jupiter .api .Assertions .assertThrows ;
5
6
import static org .junit .jupiter .api .Assertions .assertTrue ;
6
7
@@ -13,8 +14,8 @@ public class AmadeusTest {
13
14
* Amadeus Test.
14
15
*/
15
16
@ Test public void testBuilder () {
16
- Amadeus .builder ("id" , "secret" );
17
- assertTrue ( true ,
17
+ Configuration config = Amadeus .builder ("id" , "secret" );
18
+ assertNotNull ( config ,
18
19
"should return a Configuration" );
19
20
}
20
21
@@ -36,8 +37,8 @@ public class AmadeusTest {
36
37
put ("AMADEUS_HOST" , "my.custom.host.com" );
37
38
}
38
39
};
39
- Amadeus .builder (environment );
40
- assertTrue ( true , "should return a Configuration" );
40
+ Configuration config = Amadeus .builder (environment );
41
+ assertNotNull ( config , "should return a Configuration" );
41
42
42
43
Amadeus amadeus = Amadeus .builder (environment ).build ();
43
44
assertEquals (amadeus .getConfiguration ().getLogLevel (), "debug" );
You can’t perform that action at this time.
0 commit comments