Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2012-01-19 07:23:09 -0500
committerGlyn Normington2012-01-19 07:34:03 -0500
commita8718f868c68029b87a276bf77bc83adea605bba (patch)
tree9924c67def38e82775097f3f8202cd825a68ed8a /org.eclipse.virgo.kernel.deployer.test/src/test/java
parentd0971cffda7a71792493a864230035d3c593f063 (diff)
downloadorg.eclipse.virgo.kernel-a8718f868c68029b87a276bf77bc83adea605bba.tar.gz
org.eclipse.virgo.kernel-a8718f868c68029b87a276bf77bc83adea605bba.tar.xz
org.eclipse.virgo.kernel-a8718f868c68029b87a276bf77bc83adea605bba.zip
Fix a few errors and warnings
Diffstat (limited to 'org.eclipse.virgo.kernel.deployer.test/src/test/java')
-rw-r--r--org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/RefreshTests.java30
1 files changed, 5 insertions, 25 deletions
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/RefreshTests.java b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/RefreshTests.java
index 4188f98e..4806476b 100644
--- a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/RefreshTests.java
+++ b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/RefreshTests.java
@@ -16,12 +16,14 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
import java.io.IOException;
import java.util.Set;
+import org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer;
+import org.eclipse.virgo.kernel.deployer.core.DeploymentException;
+import org.eclipse.virgo.kernel.deployer.core.DeploymentIdentity;
+import org.eclipse.virgo.util.io.JarUtils;
+import org.eclipse.virgo.util.io.PathReference;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -29,12 +31,6 @@ import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
-import org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer;
-import org.eclipse.virgo.kernel.deployer.core.DeploymentException;
-import org.eclipse.virgo.kernel.deployer.core.DeploymentIdentity;
-import org.eclipse.virgo.util.io.JarUtils;
-import org.eclipse.virgo.util.io.PathReference;
-
/**
* Test refreshing individual modules of a deployed application.
* <p />
@@ -46,8 +42,6 @@ public class RefreshTests extends AbstractDeployerIntegrationTest {
private static final String REFRESH_EXPORTER_VERSION = "1.0.0.BUILD-20100310081114";
- private static final File LOG_FILE = new File("target/serviceability/eventlog/eventlog.log");
-
private final String TEST_IMPORTER_BUNDLE_SYMBOLIC_NAME = "RefreshTest-1-RefreshImporter";
private final String TEST_IMPORT_BUNDLE_IMPORTER_BUNDLE_SYMBOLIC_NAME = "RefreshTest-Import-Bundle-1-RefreshImporter";
@@ -62,18 +56,6 @@ public class RefreshTests extends AbstractDeployerIntegrationTest {
private PathReference parImportBundle;
- private int existingLines;
-
- public void countExistingLogLines() throws IOException {
- BufferedReader reader = new BufferedReader(new FileReader(LOG_FILE));
- String line = reader.readLine();
- existingLines = 0;
- while (line != null) {
- existingLines++;
- line = reader.readLine();
- }
- }
-
@Before
public void setUp() throws Exception {
PathReference pr = new PathReference("./target/org.eclipse.virgo.kernel");
@@ -90,8 +72,6 @@ public class RefreshTests extends AbstractDeployerIntegrationTest {
JarUtils.unpackTo(par, explodedPar);
parImportBundle = new PathReference("src/test/resources/refresh-import-bundle.par");
-
- countExistingLogLines();
}
@After

Back to the top