use of com.abubusoft.kripton.KriptonSmileContext in project kripton by xcesco.
the class AbstractBaseTest method setup.
@Before
public void setup() {
final String value = System.getProperty(KRIPTON_DEBUG_MODE);
if ("false".equals(value)) {
// we are in test, but we don't see log on System.out
System.setOut(new PrintStream(new NullOutputStream()));
System.setErr(new PrintStream(new NullOutputStream()));
}
// when we run junit test, AnnotationProcessor is always in TEST_MODE
System.setProperty("java.util.logging.SimpleFormatter.format", "%1$tH:%1$tM:%1$tS.%1$tL %4$-7s [%3$s] (%2$s) %5$s %6$s%n");
KriptonBinder.registryBinder(new KriptonYamlContext());
KriptonBinder.registryBinder(new KriptonPropertiesContext());
KriptonBinder.registryBinder(new KriptonCborContext());
KriptonBinder.registryBinder(new KriptonSmileContext());
}
Aggregations