@Test public void testContextCreationWithIllegalName() { List<String> badNames = Arrays.asList("1QA", "PRODÜCTION", " PROD", "Pre Prod"); for (String name : badNames) { try { Context.newInstance(name); fail(); } catch (InvalidIdentifierException e) { } } }
public static Builder newInstance(String ctx) { return new Builder(ctx); }
Context { public static Builder newInstance(String ctx) { return new Builder(ctx); } }
Context { public static Builder newInstance(String ctx) { return new Builder(ctx); } private  Context(String ctx); protected  Context(); }
Context { public static Builder newInstance(String ctx) { return new Builder(ctx); } private  Context(String ctx); protected  Context(); static Context valueOf(String value); static Builder newInstance(String ctx); static Builder from(Context ctx); String getContext(); void setContext(String value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
Context { public static Builder newInstance(String ctx) { return new Builder(ctx); } private  Context(String ctx); protected  Context(); static Context valueOf(String value); static Builder newInstance(String ctx); static Builder from(Context ctx); String getContext(); void setContext(String value); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }