Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Checkstyle: fix ParenPad violations
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
AbstractActorTest.java
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractActorTest.java
b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractActorTest.java
index ec5381546964d7c8846ed446e4947baebe48380f..d16e5efaa003eab5077f713da0124ed444d9093a 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractActorTest.java
+++ b/
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractActorTest.java
@@
-10,25
+10,33
@@
package org.opendaylight.controller.cluster.raft;
import akka.actor.ActorSystem;
import akka.testkit.JavaTestKit;
import akka.actor.ActorSystem;
import akka.testkit.JavaTestKit;
+import java.io.File;
+import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.apache.commons.io.FileUtils;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-
-import java.io.File;
-import java.io.IOException;
+import org.opendaylight.yangtools.util.AbstractStringIdentifier;
public abstract class AbstractActorTest {
public abstract class AbstractActorTest {
+ protected static final class MockIdentifier extends AbstractStringIdentifier<MockIdentifier> {
+ private static final long serialVersionUID = 1L;
+
+ public MockIdentifier(final String string) {
+ super(string);
+ }
+ }
+
private static ActorSystem system;
@BeforeClass
private static ActorSystem system;
@BeforeClass
- public static void setUpClass() throws Exception{
+ public static void setUpClass() throws Exception
{
deleteJournal();
System.setProperty("shard.persistent", "false");
system = ActorSystem.create("test");
}
@AfterClass
deleteJournal();
System.setProperty("shard.persistent", "false");
system = ActorSystem.create("test");
}
@AfterClass
- public static void tearDownClass() throws Exception{
+ public static void tearDownClass() throws Exception
{
deleteJournal();
JavaTestKit.shutdownActorSystem(system);
system = null;
deleteJournal();
JavaTestKit.shutdownActorSystem(system);
system = null;
@@
-41,7
+49,7
@@
public abstract class AbstractActorTest {
protected static void deleteJournal() throws IOException {
File journal = new File("journal");
protected static void deleteJournal() throws IOException {
File journal = new File("journal");
- if(journal.exists()) {
+ if
(journal.exists()) {
FileUtils.deleteDirectory(journal);
}
}
FileUtils.deleteDirectory(journal);
}
}