initial add of EbeanORM server based on v2.8.1

This commit is contained in:
rbygrave
2012-09-14 00:40:39 +12:00
parent 2b74d0f9d9
commit 96ce4c0ddf
1188 changed files with 135034 additions and 0 deletions
@@ -0,0 +1,28 @@
package com.avaje.tests.unitinternal;
import junit.framework.Assert;
import junit.framework.TestCase;
public class TestBasics extends TestCase {
private String parentPath(String path) {
int pos = path.lastIndexOf('.');
if (pos == -1){
return null;
} else {
return path.substring(0, pos);
}
}
public void testParentPath() {
Assert.assertTrue((parentPath("banana") == null));
Assert.assertTrue((parentPath("banana.apple").equals("banana")));
Assert.assertTrue((parentPath("banana.apple.o").equals("banana.apple")));
}
}