Repository: atlas
Updated Branches:
  refs/heads/0.8-incubating 122b55672 -> 09f677c03


ATLAS-1981: fix for unit test failures (#2)


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/09f677c0
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/09f677c0
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/09f677c0

Branch: refs/heads/0.8-incubating
Commit: 09f677c03a3f23035723d4eda6634649a04dc118
Parents: 122b556
Author: Madhan Neethiraj <mad...@apache.org>
Authored: Thu Aug 3 00:32:17 2017 -0700
Committer: Madhan Neethiraj <mad...@apache.org>
Committed: Thu Aug 3 00:32:17 2017 -0700

----------------------------------------------------------------------
 .../apache/atlas/services/EntityDiscoveryServiceTest.java   | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/09f677c0/repository/src/test/java/org/apache/atlas/services/EntityDiscoveryServiceTest.java
----------------------------------------------------------------------
diff --git 
a/repository/src/test/java/org/apache/atlas/services/EntityDiscoveryServiceTest.java
 
b/repository/src/test/java/org/apache/atlas/services/EntityDiscoveryServiceTest.java
index 5706d26..5a0739c 100644
--- 
a/repository/src/test/java/org/apache/atlas/services/EntityDiscoveryServiceTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/services/EntityDiscoveryServiceTest.java
@@ -105,10 +105,11 @@ public class EntityDiscoveryServiceTest {
     public void getSubTypeForTypeWithSubTypes_ReturnsOrClause() throws 
Exception {
         String s = invokeGetSubTypesForType(TEST_TYPE_WITH_SUB_TYPES, 
maxTypesStrLengthInIdxQuery);
 
-        assertTrue(s.startsWith("(" + TEST_TYPE_WITH_SUB_TYPES));
-        assertTrue(s.contains(" " + TEST_TYPE1));
-        assertTrue(s.contains(" " + TEST_TYPE2));
-        assertTrue(s.contains(" " + TEST_TYPE3));
+        assertTrue(s.startsWith("("));
+        assertTrue(s.contains(TEST_TYPE_WITH_SUB_TYPES));
+        assertTrue(s.contains(TEST_TYPE1));
+        assertTrue(s.contains(TEST_TYPE2));
+        assertTrue(s.contains(TEST_TYPE3));
         assertTrue(s.endsWith(")"));
     }
 

Reply via email to