@@ -21,21 +21,21 @@ public class UriHelperTest extends AndroidTestCase {
2121 private static final String GOOGLE_PLAY_WEB = "https://play.google.com/store/apps/details?id=" ;
2222
2323 @ SuppressWarnings ("ConstantConditions" )
24- public void testGetChineseStoresUri () {
24+ public void testGetStoreUri () {
2525 {
2626 Uri uri = UriHelper .getStoreUri (StoreType .CHINESESTORES ,"" );
2727 assertEquals (uri .toString (), CHINESE_STORES );
2828 }
2929 {
30- Uri uri = UriHelper .getStoreWebUri (StoreType .CHINESESTORES ,"" );
31- assertNull (uri );
30+ Uri uri = UriHelper .getStoreUri (StoreType .GOOGLEPLAY ,"" );
31+ assertEquals (uri . toString (), GOOGLE_PLAY );
3232 }
3333 {
3434 Uri uri = UriHelper .getStoreUri (StoreType .CHINESESTORES ,null );
3535 assertNull (uri );
3636 }
3737 {
38- Uri uri = UriHelper .getStoreWebUri (StoreType .CHINESESTORES ,null );
38+ Uri uri = UriHelper .getStoreUri (StoreType .GOOGLEPLAY ,null );
3939 assertNull (uri );
4040 }
4141 {
@@ -45,23 +45,23 @@ public void testGetChineseStoresUri() {
4545 }
4646 {
4747 final String paramName = "com.vorlonsoft.android.rate" ;
48- Uri uri = UriHelper .getStoreWebUri (StoreType .CHINESESTORES , paramName );
49- assertNull (uri );
48+ Uri uri = UriHelper .getStoreUri (StoreType .GOOGLEPLAY , paramName );
49+ assertEquals (uri . toString (), GOOGLE_PLAY + paramName );
5050 }
5151 }
5252
5353 @ SuppressWarnings ("ConstantConditions" )
54- public void testGetGooglePlayUri () {
54+ public void testGetStoreWebUri () {
5555 {
56- Uri uri = UriHelper .getStoreUri (StoreType .GOOGLEPLAY ,"" );
57- assertEquals (uri . toString (), GOOGLE_PLAY );
56+ Uri uri = UriHelper .getStoreWebUri (StoreType .CHINESESTORES ,"" );
57+ assertNull (uri );
5858 }
5959 {
6060 Uri uri = UriHelper .getStoreWebUri (StoreType .GOOGLEPLAY ,"" );
6161 assertEquals (uri .toString (), GOOGLE_PLAY_WEB );
6262 }
6363 {
64- Uri uri = UriHelper .getStoreUri (StoreType .GOOGLEPLAY ,null );
64+ Uri uri = UriHelper .getStoreWebUri (StoreType .CHINESESTORES ,null );
6565 assertNull (uri );
6666 }
6767 {
@@ -70,8 +70,8 @@ public void testGetGooglePlayUri() {
7070 }
7171 {
7272 final String paramName = "com.vorlonsoft.android.rate" ;
73- Uri uri = UriHelper .getStoreUri (StoreType .GOOGLEPLAY , paramName );
74- assertEquals (uri . toString (), GOOGLE_PLAY + paramName );
73+ Uri uri = UriHelper .getStoreWebUri (StoreType .CHINESESTORES , paramName );
74+ assertNull (uri );
7575 }
7676 {
7777 final String paramName = "com.vorlonsoft.android.rate" ;
0 commit comments