Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5ad99be
#354 Add maven model for feature toggle design pattern
mikulucky Jan 25, 2016
cf10bd1
#354 Add maven model for feature toggle design pattern
mikulucky Jan 25, 2016
d7526fc
#354 Add maven model for feature toggle design pattern
mikulucky Jan 25, 2016
89e0e3e
#354 Remove generated copyright banner
mikulucky Jan 25, 2016
0b83412
#354 Add Blank index.md
mikulucky Jan 25, 2016
72733ac
#354 added usergroup for version of feature toggle
mikulucky Jan 26, 2016
a1ede89
#354 Added WelcomeMessage Service and Tests for tier example of featu…
mikulucky Jan 26, 2016
32f9cf3
#354 Some clean up and show the difference between paid and free a bi…
mikulucky Jan 26, 2016
91b2379
#354 Fixed CheckStyle Issues
mikulucky Jan 26, 2016
d627b7a
#354 Moved Tests to the correct area
mikulucky Jan 26, 2016
ba1d3a0
#354 Added Configuration Based Example of Feature Toggle
mikulucky Jan 26, 2016
4a49f82
#354 add general boolean method to services for feature status. Chang…
mikulucky Jan 26, 2016
77e14f0
#354 Add tests for Properties
mikulucky Jan 26, 2016
98326a1
#354 Start Adding Java docs
mikulucky Jan 28, 2016
c2e750a
#354 finished method javadocs
mikulucky Jan 31, 2016
7cc93de
#354 Merged Remote Master and resolved conflicts
mikulucky Jan 31, 2016
8603333
#354 Adding Class Diagram
mikulucky Jan 31, 2016
bf5ba44
#354 add App.java
mikulucky Jan 31, 2016
b27d6df
Merge branch 'master' of github.com:mikulucky/java-design-patterns
mikulucky Jan 31, 2016
37da470
#354 Finish Readme
mikulucky Feb 1, 2016
c7f4311
#354 Clean up
mikulucky Feb 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#354 Add tests for Properties
  • Loading branch information
mikulucky committed Jan 26, 2016
commit 77e14f00693114168853b62595144684ef87af07
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class UserGroup {
private static List<User> freeGroup = new ArrayList<>();
private static List<User> paidGroup = new ArrayList<>();


/**
*
* @param user {@link User} to be added to the free group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@

public class PropertiesFeatureToggleVersionTest {

@Test(expected = IllegalArgumentException.class)
public void testNullPropertiesPassed() throws Exception {
new PropertiesFeatureToggleVersion(null);
}

@Test(expected = IllegalArgumentException.class)
public void testNonBooleanProperty() throws Exception {
final Properties properties = new Properties();
properties.setProperty("enhancedWelcome","Something");
new PropertiesFeatureToggleVersion(properties);
}

@Test
public void testFeatureTurnedOn() throws Exception {
final Properties properties = new Properties();
Expand Down