From 954d9bd9b77cc64770c889a53b668b0bd7f6b18b Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Thu, 20 Nov 2014 16:03:26 +0100 Subject: Adapt RuleCheckerTests (again) --- .../java/at/gv/egiz/bku/accesscontroller/RuleCheckerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bkucommon/src/test/java/at') diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/accesscontroller/RuleCheckerTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/accesscontroller/RuleCheckerTest.java index 00c9af9f..569759b4 100644 --- a/bkucommon/src/test/java/at/gv/egiz/bku/accesscontroller/RuleCheckerTest.java +++ b/bkucommon/src/test/java/at/gv/egiz/bku/accesscontroller/RuleCheckerTest.java @@ -87,7 +87,7 @@ public class RuleCheckerTest { @Test public void testPeerId() { AccessCheckerContext ctx = new AccessCheckerContext(null, null, - "https://129.27.142.20:80/index.html"); + "https://129.27.142.55:80/index.html"); RuleResult rr = onlyPeerChecker.check(ctx); assertTrue(rr.matchFound()); @@ -96,14 +96,14 @@ public class RuleCheckerTest { rr = onlyPeerChecker.check(ctx); assertFalse(rr.matchFound()); - onlyPeerChecker.setPeerId(".*.iaik.tugraz..*", PEER_TYPE.HOST); + onlyPeerChecker.setPeerId(".*.buergerkarte..*", PEER_TYPE.HOST); ctx = new AccessCheckerContext(null, null, - "https://129.27.142.20:80/index.html"); + "https://129.27.142.55:80/index.html"); rr = onlyPeerChecker.check(ctx); assertTrue(rr.matchFound()); onlyPeerChecker.setPeerId("129.27.142..*", PEER_TYPE.IP); - ctx = new AccessCheckerContext(null, null, "https://www.iaik.tugraz.at:80/"); + ctx = new AccessCheckerContext(null, null, "https://www.buergerkarte.at:80/"); rr = onlyPeerChecker.check(ctx); assertTrue(rr.matchFound()); } -- cgit v1.2.3