mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 11:25:50 +00:00
#354 add general boolean method to services for feature status. Change user.toString
This commit is contained in:
+6
@@ -7,6 +7,7 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class TieredFeatureToggleVersionTest {
|
||||
|
||||
@@ -33,4 +34,9 @@ public class TieredFeatureToggleVersionTest {
|
||||
final String expected = "I suppose you can use this software.";
|
||||
assertEquals(expected, welcomeMessage);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsEnhancedAlwaysTrueAsTiered() throws Exception {
|
||||
assertTrue(service.isEnhanced());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user