code review comments

This commit is contained in:
cagache
2019-08-22 08:30:18 +03:00
parent 2410fdb234
commit b5899184ca

View File

@@ -87,7 +87,6 @@ public class NodeTypeUtilityUnitTest
public void testInstanceOfCacheSameTypes() public void testInstanceOfCacheSameTypes()
{ {
nodeTypeUtility.instanceOf(type, ofType); nodeTypeUtility.instanceOf(type, ofType);
verify(mockedDictionaryService, times(1)).isSubClass(any(), any());
nodeTypeUtility.instanceOf(type, ofType); nodeTypeUtility.instanceOf(type, ofType);
verify(mockedDictionaryService, times(1)).isSubClass(any(), any()); verify(mockedDictionaryService, times(1)).isSubClass(any(), any());
} }
@@ -98,7 +97,6 @@ public class NodeTypeUtilityUnitTest
{ {
QName anotherType = AlfMock.generateQName(); QName anotherType = AlfMock.generateQName();
nodeTypeUtility.instanceOf(type, ofType); nodeTypeUtility.instanceOf(type, ofType);
verify(mockedDictionaryService, times(1)).isSubClass(any(), any());
nodeTypeUtility.instanceOf(anotherType, ofType); nodeTypeUtility.instanceOf(anotherType, ofType);
verify(mockedDictionaryService, times(2)).isSubClass(any(), any()); verify(mockedDictionaryService, times(2)).isSubClass(any(), any());
} }