@Test public void isDevModeIfNoAzureKeyAndGoogleCredential() throws IOException { File googleADC = temporaryFolder.newFile(); ConfigurationService config = new ConfigurationService("", googleADC.getAbsolutePath(), "", "ms", null); assertThat(config.isDevMode()).isTrue(); }
@Produces @DevMode public boolean isDevMode() { return isDevMode; }
ConfigurationService { @Produces @DevMode public boolean isDevMode() { return isDevMode; } }
ConfigurationService { @Produces @DevMode public boolean isDevMode() { return isDevMode; } @SuppressWarnings("unused")  ConfigurationService(); @Inject  ConfigurationService(
            @EnvVariable(AZURE_KEY) String msAPIKey,
            @EnvVariable(GOOGLE_ADC) String googleADC,
            @EnvVariable(GOOGLE_CREDENTIAL_CONTENT) String googleADCContent,
            @EnvVariable(DEFAULT_PROVIDER) String defaultProvider,
            @EnvVariable(DEV_BACKEND) String enableDevBackend); }
ConfigurationService { @Produces @DevMode public boolean isDevMode() { return isDevMode; } @SuppressWarnings("unused")  ConfigurationService(); @Inject  ConfigurationService(
            @EnvVariable(AZURE_KEY) String msAPIKey,
            @EnvVariable(GOOGLE_ADC) String googleADC,
            @EnvVariable(GOOGLE_CREDENTIAL_CONTENT) String googleADCContent,
            @EnvVariable(DEFAULT_PROVIDER) String defaultProvider,
            @EnvVariable(DEV_BACKEND) String enableDevBackend); void init(@Observes @Initialized(ApplicationScoped.class) Object init); String getVersion(); String getBuildDate(); @Produces @DevMode boolean isDevMode(); }
ConfigurationService { @Produces @DevMode public boolean isDevMode() { return isDevMode; } @SuppressWarnings("unused")  ConfigurationService(); @Inject  ConfigurationService(
            @EnvVariable(AZURE_KEY) String msAPIKey,
            @EnvVariable(GOOGLE_ADC) String googleADC,
            @EnvVariable(GOOGLE_CREDENTIAL_CONTENT) String googleADCContent,
            @EnvVariable(DEFAULT_PROVIDER) String defaultProvider,
            @EnvVariable(DEV_BACKEND) String enableDevBackend); void init(@Observes @Initialized(ApplicationScoped.class) Object init); String getVersion(); String getBuildDate(); @Produces @DevMode boolean isDevMode();  }