Skip to content

Commit 023bbe9

Browse files
Remove SecurityManager form JavaSecurityTest
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent 07fb19f commit 023bbe9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

itests/test/src/test/java/org/apache/karaf/itests/JavaSecurityTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.apache.karaf.bundle.core.BundleInfo;
1717
import org.apache.karaf.bundle.core.BundleService;
1818
import org.apache.karaf.bundle.core.BundleState;
19-
import org.junit.Ignore;
2019
import org.junit.Test;
2120
import org.junit.runner.RunWith;
2221
import org.ops4j.pax.exam.Configuration;
@@ -35,12 +34,10 @@
3534
import java.nio.file.StandardCopyOption;
3635
import java.util.*;
3736

38-
import static org.junit.Assert.assertNotNull;
3937
import static org.junit.Assert.fail;
4038
import static org.ops4j.pax.exam.CoreOptions.maven;
4139
import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.*;
4240

43-
@Ignore("Disabled due to removal of SecurityManager. ref Apache Karaf GitHub issue #2082")
4441
@RunWith(PaxExam.class)
4542
@ExamReactorStrategy(PerClass.class)
4643
public class JavaSecurityTest extends BaseTest {
@@ -74,8 +71,6 @@ public Option[] config() {
7471

7572
@Test
7673
public void testJavaSecurity() throws Exception {
77-
assertNotNull("Karaf should run under a security manager", System.getSecurityManager());
78-
7974
BundleService service = getOsgiService(BundleService.class);
8075
long tried = 0;
8176
while (true) {

0 commit comments

Comments
 (0)