@Test public void testWhenManifestsExistsVersionTitleShouldBeReturned() { given(packageProvider.getPackageOfObject(underTest)).willReturn(packageOfUnderTest); given(packageOfUnderTest.getImplementationTitle()).willReturn("something"); String result = underTest.getVersionTitle(); assertEquals("something", result); }
public String getVersionTitle() { String versionTitle = packageProvider.getPackageOfObject(this).getImplementationTitle(); return versionTitle != null ? versionTitle : NOT_FOUND; }
VersionTitleProvider { public String getVersionTitle() { String versionTitle = packageProvider.getPackageOfObject(this).getImplementationTitle(); return versionTitle != null ? versionTitle : NOT_FOUND; } }
VersionTitleProvider { public String getVersionTitle() { String versionTitle = packageProvider.getPackageOfObject(this).getImplementationTitle(); return versionTitle != null ? versionTitle : NOT_FOUND; }  }
VersionTitleProvider { public String getVersionTitle() { String versionTitle = packageProvider.getPackageOfObject(this).getImplementationTitle(); return versionTitle != null ? versionTitle : NOT_FOUND; }  String getVersionTitle(); }
VersionTitleProvider { public String getVersionTitle() { String versionTitle = packageProvider.getPackageOfObject(this).getImplementationTitle(); return versionTitle != null ? versionTitle : NOT_FOUND; }  String getVersionTitle();  }