📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@ -35,7 +35,7 @@ import cucumber.api.junit.Cucumber;
|
||||
@RunWith(Cucumber.class)
|
||||
@CucumberOptions(format = {"html:target/cucumber-html-report", "json:target/cucumber.json"},
|
||||
glue = {"classpath:domainapp.integtests.specglue"}, strict = true, tags = {"~@backlog",
|
||||
"~@ignore"})
|
||||
"~@ignore"})
|
||||
public class RunSpecs {
|
||||
// intentionally empty
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ public class SimpleObjectIntegTest extends SimpleAppIntegTest {
|
||||
RecreateSimpleObjects fs;
|
||||
SimpleObject simpleObjectPojo;
|
||||
SimpleObject simpleObjectWrapped;
|
||||
|
||||
|
||||
private static final String NEW_NAME = "new name";
|
||||
|
||||
@Before
|
||||
@ -64,7 +64,7 @@ public class SimpleObjectIntegTest extends SimpleAppIntegTest {
|
||||
assertNotNull(simpleObjectPojo);
|
||||
simpleObjectWrapped = wrap(simpleObjectPojo);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testNameAccessible() {
|
||||
/* when */
|
||||
@ -72,7 +72,7 @@ public class SimpleObjectIntegTest extends SimpleAppIntegTest {
|
||||
// then
|
||||
assertEquals(fs.names.get(0), name);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testNameCannotBeUpdatedDirectly() {
|
||||
|
||||
@ -82,7 +82,7 @@ public class SimpleObjectIntegTest extends SimpleAppIntegTest {
|
||||
// when
|
||||
simpleObjectWrapped.setName(NEW_NAME);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testUpdateName() {
|
||||
|
||||
@ -92,7 +92,7 @@ public class SimpleObjectIntegTest extends SimpleAppIntegTest {
|
||||
// then
|
||||
assertEquals(NEW_NAME, simpleObjectWrapped.getName());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testUpdateNameFailsValidation() {
|
||||
|
||||
@ -103,7 +103,7 @@ public class SimpleObjectIntegTest extends SimpleAppIntegTest {
|
||||
// when
|
||||
simpleObjectWrapped.updateName(NEW_NAME + "!");
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testInterpolatesName() {
|
||||
|
||||
|
@ -46,6 +46,7 @@ public class SimpleObjectsIntegTest extends SimpleAppIntegTest {
|
||||
|
||||
@Inject
|
||||
FixtureScripts fixtureScripts;
|
||||
|
||||
@Inject
|
||||
SimpleObjects simpleObjects;
|
||||
|
||||
|
Reference in New Issue
Block a user