KEYCLOAK-4233 Run failing i18n tests with community profile

This commit is contained in:
zschwarz 2017-01-16 15:27:39 +01:00
parent 1913f801b9
commit ae40bfb96e
3 changed files with 5 additions and 2 deletions

View file

@ -33,4 +33,7 @@ public class ProfileAssume {
Assume.assumeFalse("Ignoring test as community/preview profile is enabled", !Profile.getName().equals("product"));
}
public static void assumeCommunity() {
Assume.assumeTrue("Ignoring test as community profile is not enabled", Profile.getName().equals("community"));
}
}

View file

@ -83,7 +83,7 @@ public class EmailTest extends AbstractI18NTest {
@Test
public void restPasswordEmailGerman() throws IOException, MessagingException {
ProfileAssume.assumePreview();
ProfileAssume.assumeCommunity();
changeUserLocale("de");

View file

@ -97,7 +97,7 @@ public class LoginPageTest extends AbstractI18NTest {
@Test
public void acceptLanguageHeader() {
ProfileAssume.assumePreview();
ProfileAssume.assumeCommunity();
DefaultHttpClient httpClient = (DefaultHttpClient) new HttpClientBuilder().build();
ApacheHttpClient4Engine engine = new ApacheHttpClient4Engine(httpClient);