metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject incubator-metron git commit: METRON-440 DSL parse exception seen for Bro Topology (ottobackwards) closes apache/incubator-metron#328
Date Wed, 02 Nov 2016 19:30:30 GMT
Repository: incubator-metron
Updated Branches:
  refs/heads/master 857520c42 -> 2dcac3c24


METRON-440 DSL parse exception seen for Bro Topology (ottobackwards) closes apache/incubator-metron#328


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/2dcac3c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/2dcac3c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/2dcac3c2

Branch: refs/heads/master
Commit: 2dcac3c2494c055488577f94afa12f47c103a5e4
Parents: 857520c
Author: ottobackwards <ottobackwards@gmail.com>
Authored: Wed Nov 2 14:42:06 2016 -0400
Committer: Otto Fowler <otto@apache.org>
Committed: Wed Nov 2 14:42:06 2016 -0400

----------------------------------------------------------------------
 .../metron/common/stellar/network/RemoveSubdomainsTest.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/2dcac3c2/metron-platform/metron-common/src/test/java/org/apache/metron/common/stellar/network/RemoveSubdomainsTest.java
----------------------------------------------------------------------
diff --git a/metron-platform/metron-common/src/test/java/org/apache/metron/common/stellar/network/RemoveSubdomainsTest.java
b/metron-platform/metron-common/src/test/java/org/apache/metron/common/stellar/network/RemoveSubdomainsTest.java
index db54859..ab503e9 100644
--- a/metron-platform/metron-common/src/test/java/org/apache/metron/common/stellar/network/RemoveSubdomainsTest.java
+++ b/metron-platform/metron-common/src/test/java/org/apache/metron/common/stellar/network/RemoveSubdomainsTest.java
@@ -39,4 +39,10 @@ public class RemoveSubdomainsTest {
     Assert.assertEquals("example.com", removeSubdomains.apply(ImmutableList.of("my.example.com")));
     Assert.assertEquals("example.co.uk", removeSubdomains.apply(ImmutableList.of("my.example.co.uk")));
   }
+
+  @Test
+  public void testEmptyString() {
+    NetworkFunctions.RemoveSubdomains removeSubdomains = new NetworkFunctions.RemoveSubdomains();
+    Assert.assertEquals(null, removeSubdomains.apply(ImmutableList.of("")));
+  }
 }


Mime
View raw message