@Test public void testOperatingSystemToString() { Set<String> osStringValues = new HashSet<String>(); for (MParticle.OperatingSystem operatingSystem: MParticle.OperatingSystem.values()) { String osString = new MParticleIdentityClientImpl(Mockito.mock(Context.class), Mockito.mock(ConfigManager.class), operatingSystem).getOperatingSystemString(); assertFalse(osStringValues.contains(osString)); osStringValues.add(osString); } }
String getOperatingSystemString() { switch (mOperatingSystem) { case ANDROID: return PLATFORM_ANDROID; case FIRE_OS: return PLATFORM_FIRE; default: return PLATFORM_ANDROID; } }
MParticleIdentityClientImpl extends MParticleBaseClientImpl implements MParticleIdentityClient { String getOperatingSystemString() { switch (mOperatingSystem) { case ANDROID: return PLATFORM_ANDROID; case FIRE_OS: return PLATFORM_FIRE; default: return PLATFORM_ANDROID; } } }
MParticleIdentityClientImpl extends MParticleBaseClientImpl implements MParticleIdentityClient { String getOperatingSystemString() { switch (mOperatingSystem) { case ANDROID: return PLATFORM_ANDROID; case FIRE_OS: return PLATFORM_FIRE; default: return PLATFORM_ANDROID; } } MParticleIdentityClientImpl(Context context, ConfigManager configManager, MParticle.OperatingSystem operatingSystem); }
MParticleIdentityClientImpl extends MParticleBaseClientImpl implements MParticleIdentityClient { String getOperatingSystemString() { switch (mOperatingSystem) { case ANDROID: return PLATFORM_ANDROID; case FIRE_OS: return PLATFORM_FIRE; default: return PLATFORM_ANDROID; } } MParticleIdentityClientImpl(Context context, ConfigManager configManager, MParticle.OperatingSystem operatingSystem); IdentityHttpResponse login(IdentityApiRequest request); IdentityHttpResponse logout(IdentityApiRequest request); IdentityHttpResponse identify(IdentityApiRequest request); IdentityHttpResponse modify(IdentityApiRequest request); }
MParticleIdentityClientImpl extends MParticleBaseClientImpl implements MParticleIdentityClient { String getOperatingSystemString() { switch (mOperatingSystem) { case ANDROID: return PLATFORM_ANDROID; case FIRE_OS: return PLATFORM_FIRE; default: return PLATFORM_ANDROID; } } MParticleIdentityClientImpl(Context context, ConfigManager configManager, MParticle.OperatingSystem operatingSystem); IdentityHttpResponse login(IdentityApiRequest request); IdentityHttpResponse logout(IdentityApiRequest request); IdentityHttpResponse identify(IdentityApiRequest request); IdentityHttpResponse modify(IdentityApiRequest request);  }