AppCenter { public static synchronized AppCenter getInstance() { if (sInstance == null) { sInstance = new AppCenter(); } return sInstance; }  static synchronized AppCenter getInstance(); @SuppressWarnings("WeakerAccess") static void setWrapperSdk(WrapperSdk wrapperSdk); @IntRange(from = VERBOSE, to = NONE) static int getLogLevel(); static void setLogLevel(@IntRange(from = VERBOSE, to = NONE) int logLevel); static void setLogUrl(String logUrl); @SuppressWarnings({"WeakerAccess", "SameReturnValue"}) static String getSdkVersion(); static void setCustomProperties(CustomProperties customProperties); static boolean isConfigured(); static boolean isRunningInAppCenterTestCloud(); static void configure(Application application, String appSecret); static void configure(Application application); @SafeVarargs static void start(Class<? extends AppCenterService>... services); @SafeVarargs static void start(Application application, String appSecret, Class<? extends AppCenterService>... services); @SafeVarargs static void start(Application application, Class<? extends AppCenterService>... services); @SafeVarargs static void startFromLibrary(Context context, Class<? extends AppCenterService>... services); static AppCenterFuture<Boolean> isEnabled(); static AppCenterFuture<Void> setEnabled(boolean enabled); static AppCenterFuture<UUID> getInstallId(); static AppCenterFuture<Boolean> setMaxStorageSize(long storageSizeInBytes); static void setUserId(String userId); @VisibleForTesting void setChannel(Channel channel); static final String LOG_TAG; }
@Test public void singleton() { assertNotNull(AppCenter.getInstance()); assertSame(AppCenter.getInstance(), AppCenter.getInstance()); }