No effective change - update test DefaultProfileHandlerTest to output profiling files to target

This commit is contained in:
rob bygrave
2019-02-21 09:37:14 +13:00
parent 84f1e05eb4
commit 03a42f7f6e
@@ -3,22 +3,28 @@ package io.ebeaninternal.server.transaction;
import io.ebean.config.ProfilingConfig;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
public class DefaultProfileHandlerTest {
@Test
public void createProfileStream() throws Exception {
DefaultProfileHandler handler = new DefaultProfileHandler(new ProfilingConfig());
@Test
public void createProfileStream() {
ProfilingConfig profilingConfig = new ProfilingConfig();
profilingConfig.setDirectory("target/profiling");
DefaultProfileHandler handler = new DefaultProfileHandler(profilingConfig);
assertNotNull(handler.createProfileStream(12));
assertNull(handler.createProfileStream(0));
}
@Test
public void createProfileStream_when_specificIncludeIds() throws Exception {
public void createProfileStream_when_specificIncludeIds() {
ProfilingConfig config = new ProfilingConfig();
config.setDirectory("target/profiling");
config.setIncludeProfileIds(new int[]{100,101});
DefaultProfileHandler handler = new DefaultProfileHandler(config);