Remove unused ServerConfig debugSql options, Update Tests to use agentloader

This commit is contained in:
Robin Bygrave
2013-04-29 22:42:27 +12:00
parent bb2479c9e7
commit 2f97c5c36e
217 changed files with 6351 additions and 6740 deletions
@@ -1,30 +1,32 @@
package com.avaje.tests.basic.lob;
import junit.framework.TestCase;
import org.junit.Test;
import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.TBytesOnly;
public class TestByteOnly extends TestCase {
public class TestByteOnly extends BaseTestCase {
public void test() {
byte[] content = new byte[]{1,1};
TBytesOnly e = new TBytesOnly();
e.setContent(content);
Ebean.save(e);
@Test
public void test() {
byte[] content2 = new byte[]{1,1};
byte[] content = new byte[] { 1, 1 };
TBytesOnly e = new TBytesOnly();
e.setContent(content);
Ebean.save(e);
byte[] content2 = new byte[] { 1, 1 };
TBytesOnly e2 = Ebean.find(TBytesOnly.class, e.getId());
e2.setContent(content2);
Ebean.save(e2);
// Ebean.getServer(null).getAdminAutofetch().collectUsageViaGC();
// Ebean.getServer(null).getAdminAutofetch().updateTunedQueryInfo();
System.out.println("done");
}
TBytesOnly e2 = Ebean.find(TBytesOnly.class, e.getId());
e2.setContent(content2);
Ebean.save(e2);
//Ebean.getServer(null).getAdminAutofetch().collectUsageViaGC();
//Ebean.getServer(null).getAdminAutofetch().updateTunedQueryInfo();
System.out.println("done");
}
}