|
24 | 24 |
|
25 | 25 | public class PhpLaravelServerCodegenTest { |
26 | 26 |
|
27 | | - @Test |
28 | | - public void testInitialConfigValues() throws Exception { |
| 27 | + @Test public void testInitialConfigValues() throws Exception { |
29 | 28 | final PhpLaravelServerCodegen codegen = new PhpLaravelServerCodegen(); |
30 | 29 | codegen.processOpts(); |
31 | 30 |
|
32 | 31 | Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.TRUE); |
33 | | - Assert.assertEquals(codegen.isHideGenerationTimestamp(), true); |
| 32 | + Assert.assertTrue(codegen.isHideGenerationTimestamp()); |
34 | 33 | } |
35 | 34 |
|
36 | | - @Test |
37 | | - public void testSettersForConfigValues() throws Exception { |
| 35 | + @Test public void testSettersForConfigValues() throws Exception { |
38 | 36 | final PhpLaravelServerCodegen codegen = new PhpLaravelServerCodegen(); |
39 | 37 | codegen.setHideGenerationTimestamp(false); |
40 | 38 | codegen.processOpts(); |
41 | 39 |
|
42 | 40 | Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE); |
43 | | - Assert.assertEquals(codegen.isHideGenerationTimestamp(), false); |
| 41 | + Assert.assertFalse(codegen.isHideGenerationTimestamp()); |
44 | 42 | } |
45 | 43 |
|
46 | | - @Test |
47 | | - public void testAdditionalPropertiesPutForConfigValues() throws Exception { |
| 44 | + @Test public void testAdditionalPropertiesPutForConfigValues() throws Exception { |
48 | 45 | final PhpLaravelServerCodegen codegen = new PhpLaravelServerCodegen(); |
49 | 46 | codegen.additionalProperties().put(CodegenConstants.HIDE_GENERATION_TIMESTAMP, false); |
50 | 47 | codegen.processOpts(); |
51 | 48 |
|
52 | 49 | Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE); |
53 | | - Assert.assertEquals(codegen.isHideGenerationTimestamp(), false); |
| 50 | + Assert.assertFalse(codegen.isHideGenerationTimestamp()); |
54 | 51 | } |
55 | 52 | } |
0 commit comments