diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-11-20 16:03:26 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-11-20 16:03:26 +0100 |
commit | 954d9bd9b77cc64770c889a53b668b0bd7f6b18b (patch) | |
tree | 2400ea6760f57b051dfef5e35bd699c06ec51659 /bkucommon/src/test | |
parent | f6e55fe06d5512afeb1981b37df00a45f2d6d5d3 (diff) | |
download | mocca-954d9bd9b77cc64770c889a53b668b0bd7f6b18b.tar.gz mocca-954d9bd9b77cc64770c889a53b668b0bd7f6b18b.tar.bz2 mocca-954d9bd9b77cc64770c889a53b668b0bd7f6b18b.zip |
Adapt RuleCheckerTests (again)
Diffstat (limited to 'bkucommon/src/test')
-rw-r--r-- | bkucommon/src/test/java/at/gv/egiz/bku/accesscontroller/RuleCheckerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
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());
}
|