use of org.wildfly.swarm.arquillian.CreateSwarm in project wildfly-swarm by wildfly-swarm.
the class EEArquillianTest method newSwarm.
@CreateSwarm
public static Swarm newSwarm() throws Exception {
EEFraction fraction = new EEFraction();
fraction.applyDefaults();
return new Swarm().fraction(fraction);
}
use of org.wildfly.swarm.arquillian.CreateSwarm in project wildfly-swarm by wildfly-swarm.
the class SWARM553Test method newContainer.
@CreateSwarm
public static Swarm newContainer() throws Exception {
return new Swarm().fraction(new LoggingFraction().periodicSizeRotatingFileHandler("FILE", (h) -> {
h.level(Level.INFO).append(true).suffix(".yyyy-MM-dd").rotateSize("30m").enabled(true).encoding("UTF-8").maxBackupIndex(2);
Map<String, String> fileSpec = new HashMap<>();
fileSpec.put("path", logFile);
h.file(fileSpec);
}).logger("br.org.sistemafieg.cliente", (l) -> {
l.level(Level.INFO).handler("FILE");
}));
}
Aggregations