Upgraded Spongy Castle to 1.53, fixed tests. #146

This commit is contained in:
akwizgran
2015-12-03 11:12:16 +00:00
parent 427efdc7d6
commit 8ae3fb3e35
14 changed files with 22 additions and 48 deletions

View File

@@ -27,7 +27,7 @@ public class BasicH2Test extends BriarTestCase {
private final File testDir = TestUtils.getTestDirectory();
private final File db = new File(testDir, "db");
private final String url = "jdbc:h2:" + db.getPath();
private final String url = "jdbc:h2:" + db.getAbsolutePath();
private Connection connection = null;
@@ -106,19 +106,19 @@ public class BasicH2Test extends BriarTestCase {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, -128
0, 0, 0, 0, 0, 0, 0, 0
};
byte[] second = new byte[] {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
0, 0, 0, 0, 0, 0, 0, 127
};
byte[] third = new byte[] {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 127
0, 0, 0, 0, 0, 0, 0, (byte) 255
};
// Create the table
createTable(connection);