mirror of https://github.com/apache/activemq.git
[AMQ-6543] Cleanup warnings in karaf itests
This commit is contained in:
parent
bee0904b84
commit
b0884f88d3
|
@ -18,8 +18,6 @@ package org.apache.activemq.karaf.itest;
|
|||
|
||||
import javax.security.auth.Subject;
|
||||
|
||||
import org.apache.felix.service.command.CommandProcessor;
|
||||
import org.apache.felix.service.command.CommandSession;
|
||||
import org.apache.karaf.features.FeaturesService;
|
||||
import org.apache.karaf.jaas.boot.principal.RolePrincipal;
|
||||
import org.apache.karaf.jaas.boot.principal.UserPrincipal;
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.activemq.ActiveMQConnectionFactory;
|
|||
|
||||
public abstract class AbstractJmsFeatureTest extends AbstractFeatureTest {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
public static void copyFile(File from, File to) throws IOException {
|
||||
if (!to.exists()) {
|
||||
System.err.println("Creating new file for: "+ to);
|
||||
|
|
|
@ -24,7 +24,6 @@ import java.util.concurrent.Callable;
|
|||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.ops4j.pax.exam.CoreOptions;
|
||||
import org.ops4j.pax.exam.Option;
|
||||
import org.ops4j.pax.exam.Configuration;
|
||||
import org.ops4j.pax.exam.junit.PaxExam;
|
||||
|
|
|
@ -17,11 +17,8 @@
|
|||
package org.apache.activemq.karaf.itest;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Date;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import org.apache.karaf.features.Feature;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.ops4j.pax.exam.MavenUtils;
|
||||
|
@ -32,8 +29,6 @@ import org.ops4j.pax.exam.junit.PaxExam;
|
|||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFilePut;
|
||||
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.features;
|
||||
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.replaceConfigurationFile;
|
||||
|
||||
@RunWith(PaxExam.class)
|
||||
public class ActiveMQBrokerNdCamelFeatureTest extends AbstractJmsFeatureTest {
|
||||
|
|
|
@ -21,11 +21,9 @@ import java.util.concurrent.Callable;
|
|||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.ops4j.pax.exam.Configuration;
|
||||
import org.ops4j.pax.exam.MavenUtils;
|
||||
import org.ops4j.pax.exam.Option;
|
||||
import org.ops4j.pax.exam.junit.PaxExam;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
|
|
@ -22,7 +22,6 @@ import java.util.concurrent.Callable;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.ops4j.pax.exam.MavenUtils;
|
||||
import org.ops4j.pax.exam.Option;
|
||||
import org.ops4j.pax.exam.Configuration;
|
||||
import org.ops4j.pax.exam.junit.PaxExam;
|
||||
|
|
|
@ -27,7 +27,6 @@ import org.ops4j.pax.exam.MavenUtils;
|
|||
import org.ops4j.pax.exam.Option;
|
||||
import org.ops4j.pax.exam.junit.PaxExam;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.osgi.framework.ServiceReference;
|
||||
|
||||
|
||||
@RunWith(PaxExam.class)
|
||||
|
|
Loading…
Reference in New Issue