Skip to content

Commit e9a2b83

Browse files
committed
Simplify truthy assertions
1 parent ef8b939 commit e9a2b83

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

modules/openapi-generator/src/test/java/org/openapitools/codegen/php/PhpLaravelServerCodegenTest.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,29 @@
2424

2525
public class PhpLaravelServerCodegenTest {
2626

27-
@Test
28-
public void testInitialConfigValues() throws Exception {
27+
@Test public void testInitialConfigValues() throws Exception {
2928
final PhpLaravelServerCodegen codegen = new PhpLaravelServerCodegen();
3029
codegen.processOpts();
3130

3231
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.TRUE);
33-
Assert.assertEquals(codegen.isHideGenerationTimestamp(), true);
32+
Assert.assertTrue(codegen.isHideGenerationTimestamp());
3433
}
3534

36-
@Test
37-
public void testSettersForConfigValues() throws Exception {
35+
@Test public void testSettersForConfigValues() throws Exception {
3836
final PhpLaravelServerCodegen codegen = new PhpLaravelServerCodegen();
3937
codegen.setHideGenerationTimestamp(false);
4038
codegen.processOpts();
4139

4240
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE);
43-
Assert.assertEquals(codegen.isHideGenerationTimestamp(), false);
41+
Assert.assertFalse(codegen.isHideGenerationTimestamp());
4442
}
4543

46-
@Test
47-
public void testAdditionalPropertiesPutForConfigValues() throws Exception {
44+
@Test public void testAdditionalPropertiesPutForConfigValues() throws Exception {
4845
final PhpLaravelServerCodegen codegen = new PhpLaravelServerCodegen();
4946
codegen.additionalProperties().put(CodegenConstants.HIDE_GENERATION_TIMESTAMP, false);
5047
codegen.processOpts();
5148

5249
Assert.assertEquals(codegen.additionalProperties().get(CodegenConstants.HIDE_GENERATION_TIMESTAMP), Boolean.FALSE);
53-
Assert.assertEquals(codegen.isHideGenerationTimestamp(), false);
50+
Assert.assertFalse(codegen.isHideGenerationTimestamp());
5451
}
5552
}

0 commit comments

Comments
 (0)