Skip to content

Commit

Permalink
add platform restart and set update-center.properties in ServerTester
Browse files Browse the repository at this point in the history
  • Loading branch information
sns-seb committed May 15, 2015
1 parent 77e67e7 commit 0c32759
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -60,7 +60,7 @@ public class ServerTester extends ExternalResource {
private Platform platform;
private EsServerHolder esServerHolder;
private final File homeDir = TestUtils.newTempDir("tmp-sq-");
private final List components = Lists.newArrayList(WsTester.class);
private final List<Object> components = Lists.<Object>newArrayList(WsTester.class);
private final Properties initialProps = new Properties();
private final ServletContext servletContext = new AttributeHolderServletContext();

Expand Down Expand Up @@ -141,6 +141,10 @@ public void stop() {
FileUtils.deleteQuietly(homeDir);
}

public void restart() {
platform.restart();
}

/**
* Add classes or objects to IoC container, as it could be done by plugins.
* Must be called before {@link #start()}.
Expand Down

0 comments on commit 0c32759

Please sign in to comment.