From 903791e1dbf5c3ea1b9d30afbaf4b3b32060325a Mon Sep 17 00:00:00 2001 From: cagache Date: Wed, 21 Aug 2019 18:56:27 +0300 Subject: [PATCH] code review comments --- .../util/NodeTypeUtilityUnitTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/util/NodeTypeUtilityUnitTest.java b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/util/NodeTypeUtilityUnitTest.java index 7b6d0eef6d..a0b73aa9f7 100644 --- a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/util/NodeTypeUtilityUnitTest.java +++ b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/util/NodeTypeUtilityUnitTest.java @@ -102,4 +102,12 @@ public class NodeTypeUtilityUnitTest nodeTypeUtility.instanceOf(anotherType, ofType); verify(mockedDictionaryService, times(2)).isSubClass(any(), any()); } + + /** test that instanceOf returns true if verified type is equal to the other */ + @Test + public void testTypesAreEqual() + { + assertTrue(nodeTypeUtility.instanceOf(type, type)); + verify(mockedDictionaryService, times(0)).isSubClass(any(), any()); + } }