mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - update test DefaultProfileHandlerTest to output profiling files to target
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user