@Autowired private Environment env; @Test public void env(){ String[] activeProfiles = env.getActiveProfiles(); for (String activeProfile : activeProfiles) { if(!activeProfile.equals("prod")){ System.out.println(); } } }
@Autowired private Environment env; @Test public void env(){ String[] activeProfiles = env.getActiveProfiles(); for (String activeProfile : activeProfiles) { if(!activeProfile.equals("prod")){ System.out.println(); } } }