[Mulgara-svn] r1145 - trunk/src/jar/resolver/java/org/mulgara/resolver
ronald at mulgara.org
ronald at mulgara.org
Mon Aug 18 09:13:41 UTC 2008
Author: ronald
Date: 2008-08-18 02:13:39 -0700 (Mon, 18 Aug 2008)
New Revision: 1145
Modified:
trunk/src/jar/resolver/java/org/mulgara/resolver/AdvDatabaseSessionUnitTest.java
trunk/src/jar/resolver/java/org/mulgara/resolver/BasicDatabaseSessionUnitTest.java
trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseUnitTest.java
trunk/src/jar/resolver/java/org/mulgara/resolver/ExternalTransactionUnitTest.java
trunk/src/jar/resolver/java/org/mulgara/resolver/JotmTransactionStandaloneTest.java
trunk/src/jar/resolver/java/org/mulgara/resolver/NTriplesUnitTest.java
Log:
Fixed bracing style.
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/AdvDatabaseSessionUnitTest.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/AdvDatabaseSessionUnitTest.java 2008-08-16 01:31:51 UTC (rev 1144)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/AdvDatabaseSessionUnitTest.java 2008-08-18 09:13:39 UTC (rev 1145)
@@ -86,8 +86,7 @@
* Software Pty Ltd</a>
* @licence <a href="{@docRoot}/../../LICENCE">Mozilla Public License v1.1</a>
*/
-public class AdvDatabaseSessionUnitTest extends TestCase
-{
+public class AdvDatabaseSessionUnitTest extends TestCase {
/** Logger. */
private static Logger logger =
Logger.getLogger(AdvDatabaseSessionUnitTest.class.getName());
@@ -721,8 +720,7 @@
* The variable blank node should map to different internal node ID's in each
* insert operation.
*/
- public void testInsertionBlankNodes()
- {
+ public void testInsertionBlankNodes() {
logger.info("testInsertionBlankNodes");
try {
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/BasicDatabaseSessionUnitTest.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/BasicDatabaseSessionUnitTest.java 2008-08-16 01:31:51 UTC (rev 1144)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/BasicDatabaseSessionUnitTest.java 2008-08-18 09:13:39 UTC (rev 1145)
@@ -59,8 +59,7 @@
* Software Pty Ltd</a>
* @licence <a href="{@docRoot}/../../LICENCE">Mozilla Public License v1.1</a>
*/
-public class BasicDatabaseSessionUnitTest extends TestCase
-{
+public class BasicDatabaseSessionUnitTest extends TestCase {
/** The URI of the {@link #database}: <code>local:database</code>. */
private static final URI databaseURI = URI.create("local:database");
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseUnitTest.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseUnitTest.java 2008-08-16 01:31:51 UTC (rev 1144)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/DatabaseUnitTest.java 2008-08-18 09:13:39 UTC (rev 1145)
@@ -57,8 +57,7 @@
* @licence <a href="{@docRoot}/../../LICENCE">Mozilla Public License v1.1</a>
*/
-public class DatabaseUnitTest extends TestCase
-{
+public class DatabaseUnitTest extends TestCase {
/** Logger. */
private Logger logger = Logger.getLogger(DatabaseUnitTest.class.getName());
@@ -67,8 +66,7 @@
*
* @param name the name of the test
*/
- public DatabaseUnitTest(String name)
- {
+ public DatabaseUnitTest(String name) {
super(name);
}
@@ -77,24 +75,21 @@
*
* @return the test suite
*/
- public static Test suite()
- {
+ public static Test suite() {
return new TestSuite(DatabaseUnitTest.class);
}
/**
* Create test instance.
*/
- public void setUp()
- {
+ public void setUp() {
// null implementation
}
/**
* The teardown method for JUnit
*/
- public void tearDown()
- {
+ public void tearDown() {
// null implementation
}
@@ -105,8 +100,7 @@
/**
* Test {@link Database} constructor with invalid parameters.
*/
- public void test1Constructor()
- {
+ public void test1Constructor() {
try {
new Database(null, null, null, null, 0, 0, null, null, null, null, null,
null, null, null, null, null, null, null, null, null);
@@ -123,8 +117,7 @@
*/
public void testQuery()
throws ClassNotFoundException, IllegalAccessException,
- InstantiationException, URISyntaxException
- {
+ InstantiationException, URISyntaxException {
URI databaseURI = new URI("local:database");
URI systemModelURI = new URI("local:database#");
@@ -182,8 +175,7 @@
/**
* Fail with an unexpected exception
*/
- private void fail(Throwable throwable)
- {
+ private void fail(Throwable throwable) {
StringWriter stringWriter = new StringWriter();
throwable.printStackTrace(new PrintWriter(stringWriter));
fail(stringWriter.toString());
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/ExternalTransactionUnitTest.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/ExternalTransactionUnitTest.java 2008-08-16 01:31:51 UTC (rev 1144)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/ExternalTransactionUnitTest.java 2008-08-18 09:13:39 UTC (rev 1145)
@@ -62,8 +62,7 @@
* @licence Open Software License v3.0</a>
*/
-public class ExternalTransactionUnitTest extends TestCase
-{
+public class ExternalTransactionUnitTest extends TestCase {
/** Logger. */
private static Logger logger =
Logger.getLogger(ExternalTransactionUnitTest.class.getName());
@@ -94,13 +93,11 @@
private static Database database = null;
- public ExternalTransactionUnitTest(String name)
- {
+ public ExternalTransactionUnitTest(String name) {
super(name);
}
- public static Test suite()
- {
+ public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new ExternalTransactionUnitTest("testSimpleOnePhaseCommit"));
suite.addTest(new ExternalTransactionUnitTest("testSimpleTwoPhaseCommit"));
@@ -206,8 +203,7 @@
/**
* The teardown method for JUnit
*/
- public void tearDown()
- {
+ public void tearDown() {
}
//
@@ -243,8 +239,7 @@
* Test the {@link DatabaseSession#create} method.
* As a side-effect, creates the model required by the next tests.
*/
- public void testSimpleOnePhaseCommit() throws URISyntaxException
- {
+ public void testSimpleOnePhaseCommit() throws URISyntaxException {
logger.info("testSimpleOnePhaseCommit");
try {
@@ -269,8 +264,7 @@
* Test two phase commit.
* As a side-effect, loads the model required by the next tests.
*/
- public void testSimpleTwoPhaseCommit() throws URISyntaxException
- {
+ public void testSimpleTwoPhaseCommit() throws URISyntaxException {
logger.info("testSimpleTwoPhaseCommit");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -757,8 +751,7 @@
}
}
- public void testExplicitIsolationQuerySingleSession() throws URISyntaxException
- {
+ public void testExplicitIsolationQuerySingleSession() throws URISyntaxException {
logger.info("testExplicitIsolationQuery");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -867,8 +860,7 @@
}
}
- public void testExternalInternalIsolation() throws URISyntaxException
- {
+ public void testExternalInternalIsolation() throws URISyntaxException {
logger.info("testExplicitIsolationQuery");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -928,8 +920,7 @@
}
}
- public void testInternalExternalIsolation() throws URISyntaxException
- {
+ public void testInternalExternalIsolation() throws URISyntaxException {
logger.info("testExplicitIsolationQuery");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1027,8 +1018,7 @@
* Test two simultaneous, explicit transactions, in two threads. The second one should block
* until the first one sets auto-commit back to true.
*/
- public void testConcurrentExplicitTxn() throws URISyntaxException
- {
+ public void testConcurrentExplicitTxn() throws URISyntaxException {
logger.info("testConcurrentExplicitTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1128,8 +1118,7 @@
* Test two simultaneous transactions, in two threads. The second one should block
* until the first one sets auto-commit back to true.
*/
- public void testExternalInternalConcurrentTxn() throws URISyntaxException
- {
+ public void testExternalInternalConcurrentTxn() throws URISyntaxException {
logger.info("testConcurrentExplicitTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1228,8 +1217,7 @@
* Test two simultaneous transactions, in two threads. The second one should block
* until the first one sets auto-commit back to true.
*/
- public void testInternalExternalConcurrentTxn() throws URISyntaxException
- {
+ public void testInternalExternalConcurrentTxn() throws URISyntaxException {
logger.info("testConcurrentExplicitTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1335,8 +1323,7 @@
* Test two simultaneous transactions, in two threads. The second one should block
* until the first one sets auto-commit back to true.
*/
- public void testExternalInternalConcurrentTxnRollback() throws URISyntaxException
- {
+ public void testExternalInternalConcurrentTxnRollback() throws URISyntaxException {
logger.info("testConcurrentExplicitTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1436,8 +1423,7 @@
* Test two simultaneous transactions, in two threads. The second one should block
* until the first one sets auto-commit back to true.
*/
- public void testInternalExternalConcurrentTxnRollback() throws URISyntaxException
- {
+ public void testInternalExternalConcurrentTxnRollback() throws URISyntaxException {
logger.info("testConcurrentExplicitTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -2152,6 +2138,8 @@
fail(e);
}
}
+
+
//
// Internal methods
//
@@ -2237,8 +2225,7 @@
/**
* Fail with an unexpected exception
*/
- private void fail(Throwable throwable)
- {
+ private void fail(Throwable throwable) {
StringWriter stringWriter = new StringWriter();
throwable.printStackTrace(new PrintWriter(stringWriter));
fail(stringWriter.toString());
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/JotmTransactionStandaloneTest.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/JotmTransactionStandaloneTest.java 2008-08-16 01:31:51 UTC (rev 1144)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/JotmTransactionStandaloneTest.java 2008-08-18 09:13:39 UTC (rev 1145)
@@ -62,8 +62,7 @@
* @copyright ©2008 <a href="http://www.topazproject.org/">The Topaz Foundation</a>
* @licence Apache License v2.0
*/
-public class JotmTransactionStandaloneTest extends TestCase
-{
+public class JotmTransactionStandaloneTest extends TestCase {
/** Logger. */
private static Logger logger =
Logger.getLogger(JotmTransactionStandaloneTest.class.getName());
@@ -656,8 +655,7 @@
}
}
- public void testExplicitIsolationQuerySingleSession() throws URISyntaxException
- {
+ public void testExplicitIsolationQuerySingleSession() throws URISyntaxException {
logger.info("testExplicitIsolationQuery");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -766,8 +764,7 @@
}
}
- public void testExternalInternalIsolation() throws URISyntaxException
- {
+ public void testExternalInternalIsolation() throws URISyntaxException {
logger.info("testExplicitIsolationQuery");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -827,8 +824,7 @@
}
}
- public void testInternalExternalIsolation() throws URISyntaxException
- {
+ public void testInternalExternalIsolation() throws URISyntaxException {
logger.info("testExplicitIsolationQuery");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -926,8 +922,7 @@
// Test two simultaneous, explicit transactions, in two threads. The second one should block
// until the first one sets auto-commit back to true.
//
- public void testConcurrentExplicitTxn() throws URISyntaxException
- {
+ public void testConcurrentExplicitTxn() throws URISyntaxException {
logger.info("testConcurrentExplicitTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1027,8 +1022,7 @@
// Test two simultaneous transactions, in two threads. The second one should block
// until the first one sets auto-commit back to true.
///
- public void testExternalInternalConcurrentTxn() throws URISyntaxException
- {
+ public void testExternalInternalConcurrentTxn() throws URISyntaxException {
logger.info("testExternalInternalConcurrentTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1127,8 +1121,7 @@
// Test two simultaneous transactions, in two threads. The second one should block
// until the first one sets auto-commit back to true.
///
- public void testInternalExternalConcurrentTxn() throws URISyntaxException
- {
+ public void testInternalExternalConcurrentTxn() throws URISyntaxException {
logger.info("testInternalExternalConcurrentTxn");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1234,8 +1227,7 @@
// Test two simultaneous transactions, in two threads. The second one should block
// until the first one sets auto-commit back to true.
///
- public void testExternalInternalConcurrentTxnRollback() throws URISyntaxException
- {
+ public void testExternalInternalConcurrentTxnRollback() throws URISyntaxException {
logger.info("testExternalInternalConcurrentTxnRollback");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1335,8 +1327,7 @@
// Test two simultaneous transactions, in two threads. The second one should block
// until the first one sets auto-commit back to true.
///
- public void testInternalExternalConcurrentTxnRollback() throws URISyntaxException
- {
+ public void testInternalExternalConcurrentTxnRollback() throws URISyntaxException {
logger.info("testInternalExternalConcurrentTxnRollback");
URI fileURI = new File("data/xatest-model1.rdf").toURI();
@@ -1496,8 +1487,7 @@
}
*/
- public void testTrivalImplicit() throws URISyntaxException
- {
+ public void testTrivalImplicit() throws URISyntaxException {
logger.info("testTrivialImplicit");
try {
Session session = sessionFactory.newSession();
@@ -1596,8 +1586,7 @@
/**
* Fail with an unexpected exception
*/
- private void fail(Throwable throwable)
- {
+ private void fail(Throwable throwable) {
StringWriter stringWriter = new StringWriter();
throwable.printStackTrace(new PrintWriter(stringWriter));
fail(stringWriter.toString());
Modified: trunk/src/jar/resolver/java/org/mulgara/resolver/NTriplesUnitTest.java
===================================================================
--- trunk/src/jar/resolver/java/org/mulgara/resolver/NTriplesUnitTest.java 2008-08-16 01:31:51 UTC (rev 1144)
+++ trunk/src/jar/resolver/java/org/mulgara/resolver/NTriplesUnitTest.java 2008-08-18 09:13:39 UTC (rev 1145)
@@ -59,8 +59,7 @@
* Technology, Inc</a>
* @licence <a href="{@docRoot}/../../LICENCE">Mozilla Public License v1.1</a>
*/
-public class NTriplesUnitTest extends TestCase
-{
+public class NTriplesUnitTest extends TestCase {
/**
* Logger.
*
@@ -74,8 +73,7 @@
*
* @param name the name of the test
*/
- public NTriplesUnitTest(String name)
- {
+ public NTriplesUnitTest(String name) {
super(name);
}
@@ -84,8 +82,7 @@
*
* @return the test suite
*/
- public static Test suite()
- {
+ public static Test suite() {
return new TestSuite(NTriplesUnitTest.class);
}
@@ -101,16 +98,14 @@
/**
* Create test instance.
*/
- public void setUp()
- {
+ public void setUp() {
// null implementation
}
/**
* The teardown method for JUnit
*/
- public void tearDown()
- {
+ public void tearDown() {
// null implementation
}
@@ -121,8 +116,7 @@
/**
* Test {@link NTriples#escapeLexicalForm} method.
*/
- public void testEscapeLexicalForm()
- {
+ public void testEscapeLexicalForm() {
try {
// no escaped characters
escapeAndUnescape("foo", "foo");
@@ -161,8 +155,7 @@
* Test {@link NTriples#toNode} and {@link NTriples#toString} method for
* good inputs.
*/
- public void testConvert() throws Exception
- {
+ public void testConvert() throws Exception {
URI baseURI = new URI("foo://auth/");
Literal cat = new LiteralImpl("cat");
Literal catEn = new LiteralImpl("cat", "en");
@@ -211,8 +204,7 @@
/**
* Test {@link NTriples#toNode} method for bad inputs.
*/
- public void testToNode() throws Exception
- {
+ public void testToNode() throws Exception {
URI baseURI = new URI("foo://auth/");
try {
@@ -242,8 +234,7 @@
/**
* Test {@link NTriples#toString} method for bad inputs.
*/
- public void testToString() throws Exception
- {
+ public void testToString() throws Exception {
URI baseURI = new URI("foo://auth/");
try {
@@ -270,8 +261,7 @@
* @param escaped an ASCII string comprising the <var>unescaped</var> text
* with N-Triples escaping applied
*/
- private static void escapeAndUnescape(String unescaped, String escaped)
- {
+ private static void escapeAndUnescape(String unescaped, String escaped) {
assertEquals(escaped, NTriples.escapeLexicalForm(unescaped));
assertEquals(unescaped, NTriples.unescapeLexicalForm(escaped));
}
@@ -286,8 +276,7 @@
* @param baseURI the base URI to use in both conversions
*/
private static void convert(Node node, String string, URI baseURI)
- throws ParseException
- {
+ throws ParseException {
assertEquals(node, NTriples.toNode(string, baseURI));
assertEquals(string, NTriples.toString(node, baseURI));
}
@@ -295,8 +284,7 @@
/**
* Fail with an unexpected exception
*/
- private void fail(Throwable throwable)
- {
+ private void fail(Throwable throwable) {
StringWriter stringWriter = new StringWriter();
throwable.printStackTrace(new PrintWriter(stringWriter));
fail(stringWriter.toString());
More information about the Mulgara-svn
mailing list