@Test public void test_createChainedSignatureList_singleMethodCall_returnsOriginalCall() { String methodCallSignature = String.format( "#M#C\\DynamicReturnTypePluginTestEnvironment\\OverriddenReturnType\\Phockito:verify%s\\DomDocument", parameterSeparator); List<String> actualChainedSignatureList = bySignatureSignatureSplitter.createChainedSignatureList(methodCallSignature); assertEquals(new StringList(methodCallSignature), actualChainedSignatureList); }
@Test public void test_createChainedSignatureList_multiOverriddenMethodCall_moo() { String methodCallSignature = String.format( "#M#Ђ#P#C\\DynamicReturnTypePluginTestEnvironment\\ChainedDynamicReturnTypeTest.classBroker:getClassWithoutMask%s#K#C\\DynamicReturnTypePluginTestEnvironment\\TestClasses\\ServiceBroker", parameterSeparator); List<String> actualChainedSignatureList = bySignatureSignatureSplitter.createChainedSignatureList(methodCallSignature); assertEquals( new StringList( String.format( "#P#C\\DynamicReturnTypePluginTestEnvironment\\ChainedDynamicReturnTypeTest.classBroker:getClassWithoutMask%s#K#C\\DynamicReturnTypePluginTestEnvironment\\TestClasses\\ServiceBroker", parameterSeparator)), actualChainedSignatureList); }
@Test public void test_createChainedSignatureList_emptyString_returnsEmptyList() { List<String> actualChainedSignatureList = bySignatureSignatureSplitter.createChainedSignatureList(""); assertEquals(new StringList(), actualChainedSignatureList); }