Fix: Fixed "toString" Method In ArtistTest.java, BuilderTest.java, GathererTest.java.
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ class ArtistTest {
|
||||
String s = a.toString();
|
||||
|
||||
assertNotNull(s);
|
||||
assertTrue(s.contains(CharacterType.ARTIST.toString()));
|
||||
assertTrue(s.contains("⎕:"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-3
@@ -27,9 +27,8 @@ class BuilderTest {
|
||||
String s = b.toString();
|
||||
|
||||
assertNotNull(s);
|
||||
assertTrue(s.contains(CharacterType.BUILDER.toString()));
|
||||
assertTrue(s.contains("Reduction Value: 2"));
|
||||
assertTrue(s.contains("Prestige Value: 3"));
|
||||
assertFalse(s.contains(CharacterType.BUILDER.toString()));
|
||||
assertEquals("⎕:" + " RV:" + b.getReductionValue() + " PV:" + b.getPrestigeValue(), s);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+4
-1
@@ -13,8 +13,11 @@ class GathererTest {
|
||||
Gatherer g = new Gatherer(1);
|
||||
String s = g.toString();
|
||||
|
||||
System.out.println(s);
|
||||
|
||||
assertNotNull(s);
|
||||
assertTrue(s.contains(CharacterType.GATHERER.toString()));
|
||||
assertFalse(s.contains(CharacterType.GATHERER.toString()));
|
||||
assertTrue(s.contains("⎕:"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user