1
1
/****************************************************************************
2
- * Copyright 2017-2018 , Optimizely, Inc. and contributors *
2
+ * Copyright 2017-2019 , Optimizely, Inc. and contributors *
3
3
* *
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
5
* you may not use this file except in compliance with the License. *
@@ -1774,76 +1774,4 @@ public void testBadGetFeatureVariableString() {
1774
1774
GENERIC_USER_ID
1775
1775
);
1776
1776
}
1777
-
1778
- @ Test
1779
- public void testGoodGetVariableString () {
1780
- assumeTrue (datafileVersion == Integer .parseInt (ProjectConfig .Version .V3 .toString ()));
1781
-
1782
- OptimizelyClient optimizelyClient = new OptimizelyClient (optimizely , logger );
1783
- String v = optimizelyClient .getVariableString ("test_variable" , "userId" ,
1784
- Collections .<String , String >emptyMap (), true );
1785
- assertEquals ("true" , v );
1786
- }
1787
-
1788
- @ Test
1789
- public void testBadGetVariableString () {
1790
- OptimizelyClient optimizelyClient = new OptimizelyClient (null , logger );
1791
- optimizelyClient .getVariableString ("test_key" , "userId" ,
1792
- Collections .<String , String >emptyMap (), true );
1793
- verify (logger ).warn ("Optimizely is not initialized, could not get live variable {} " +
1794
- "for user {}" , "test_key" , "userId" );
1795
- }
1796
-
1797
- @ Test
1798
- public void testGoodGetVariableBoolean () {
1799
- assumeTrue (datafileVersion == Integer .parseInt (ProjectConfig .Version .V3 .toString ()));
1800
-
1801
- OptimizelyClient optimizelyClient = new OptimizelyClient (optimizely , logger );
1802
- Boolean b = optimizelyClient .getVariableBoolean ("test_variable" , "userId" ,
1803
- Collections .<String , String >emptyMap (), true );
1804
- assertEquals (new Boolean (true ),b );
1805
- }
1806
-
1807
- @ Test
1808
- public void testBadGetVariableBoolean () {
1809
- OptimizelyClient optimizelyClient = new OptimizelyClient (null , logger );
1810
- optimizelyClient .getVariableBoolean ("test_key" , "userId" ,
1811
- Collections .<String , String >emptyMap (), true );
1812
- verify (logger ).warn ("Optimizely is not initialized, could not get live variable {} " +
1813
- "for user {}" , "test_key" , "userId" );
1814
- }
1815
-
1816
- @ Test
1817
- public void testGoodGetVariableInteger () {
1818
- OptimizelyClient optimizelyClient = new OptimizelyClient (optimizely , logger );
1819
- Integer i = optimizelyClient .getVariableInteger ("test_variable" , "userId" ,
1820
- Collections .<String , String >emptyMap (), true );
1821
- assertNull (i );
1822
- }
1823
-
1824
- @ Test
1825
- public void testBadGetVariableInteger () {
1826
- OptimizelyClient optimizelyClient = new OptimizelyClient (null , logger );
1827
- optimizelyClient .getVariableInteger ("test_key" , "userId" ,
1828
- Collections .<String , String >emptyMap (), true );
1829
- verify (logger ).warn ("Optimizely is not initialized, could not get live variable {} " +
1830
- "for user {}" , "test_key" , "userId" );
1831
- }
1832
-
1833
- @ Test
1834
- public void testGoodGetVariableDouble () {
1835
- OptimizelyClient optimizelyClient = new OptimizelyClient (optimizely , logger );
1836
- Double v = optimizelyClient .getVariableDouble ("test_variable" , "userId" ,
1837
- Collections .<String , String >emptyMap (), true );
1838
- assertNull (v );
1839
- }
1840
-
1841
- @ Test
1842
- public void testBadGetVariableDouble () {
1843
- OptimizelyClient optimizelyClient = new OptimizelyClient (null , logger );
1844
- optimizelyClient .getVariableDouble ("test_key" , "userId" ,
1845
- Collections .<String , String >emptyMap (), true );
1846
- verify (logger ).warn ("Optimizely is not initialized, could not get live variable {} " +
1847
- "for user {}" , "test_key" , "userId" );
1848
- }
1849
- }
1777
+ }
0 commit comments