fix sonar findings

This commit is contained in:
Eduard Heimbuch
2020-06-30 11:25:36 +02:00
parent f8640d300e
commit 63692d497a
2 changed files with 3 additions and 3 deletions

View File

@@ -217,8 +217,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository> {
// test for reference
assertNotSame(heartOfGold, heartReference);
heartReference.setDescription("prototype ship");
assertFalse(
heartOfGold.getDescription().equals(heartReference.getDescription()));
assertNotEquals(heartOfGold.getDescription(), heartReference.getDescription());
}
@Test
@@ -305,7 +304,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository> {
Repository hearReference = manager.get(heartOfGold.getId());
assertNotNull(hearReference);
assertEquals(hearReference.getDescription(), "prototype ship");
assertEquals("prototype ship", hearReference.getDescription());
}
@Test