use of org.opentosca.toscana.core.transformation.logging.LogImpl in project TOSCAna by StuPro-TOSCAna.
the class LogOverflowIT method testLogOverflow.
@Test
public void testLogOverflow() {
Log logFactory = new LogImpl(new File(tmpdir, "testlog.log"));
int i = 1;
while (i < 5000) {
i++;
Logger l = logFactory.getLogger("Logger-" + i);
if (i % 500 == 0) {
l.info("Log Message {}", i);
}
}
logFactory.close();
}
use of org.opentosca.toscana.core.transformation.logging.LogImpl in project TOSCAna by StuPro-TOSCAna.
the class CsarServiceImplIT method setUp.
@Before
public void setUp() throws InvalidCsarException {
EffectiveModelFactory modelFactory = mock(EffectiveModelFactory.class);
EffectiveModel model = modelMock();
when(modelFactory.create(any(Csar.class))).thenReturn(model);
csarService = new CsarServiceImpl(csarDao);
Log log = new LogImpl(new File(tmpdir, "log"));
csar = new CsarImpl(new File(""), identifier, log);
}
Aggregations