@Test public void testEqualsAndHashcode() { PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new FileSystemResourceProvider(), new FileSystemResourceProvider()); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new FileSystemResourceProvider("src/test/resources"), new FileSystemResourceProvider("src/test/resources")); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new FileSystemResourceProvider("src/test/resources"), new FileSystemResourceProvider(new File("src/test/resources"))); }
@Test public void testImpl() { PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new FormattedObject("Any", new BracketFormatter()), new FormattedObject("Any", new BracketFormatter())); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new FormattedObject("Any", new BracketFormatter()), new FormattedObject("Any2", new BracketFormatter())); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new FormattedObject("Any", new BracketFormatter()), new FormattedObject("Any", new StringPrefixFormatter("oprefix"))); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new BracketFormatter(), new BracketFormatter()); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new MinLengthAddLeadingFormatter(10, ' '), new MinLengthAddLeadingFormatter(10, ' ')); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new MinLengthAddLeadingFormatter(10, ' '), new MinLengthAddLeadingFormatter(10, 'x')); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new MinLengthAddLeadingFormatter(10, ' '), new MinLengthAddLeadingFormatter(5, ' ')); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new MinLengthAddTrailingFormatter(10, ' '), new MinLengthAddTrailingFormatter(10, ' ')); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new MinLengthAddTrailingFormatter(10, ' '), new MinLengthAddTrailingFormatter(10, 'x')); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new MinLengthAddTrailingFormatter(10, ' '), new MinLengthAddTrailingFormatter(5, ' ')); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new StringPrefixAndSuffixFormatter("p", "s"), new StringPrefixAndSuffixFormatter("p", "s")); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new StringPrefixAndSuffixFormatter("p", "s"), new StringPrefixAndSuffixFormatter("p", "ss")); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new StringPrefixAndSuffixFormatter("p", "s"), new StringPrefixAndSuffixFormatter("pp", "s")); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new StringPrefixFormatter("p"), new StringPrefixFormatter("p")); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new StringPrefixFormatter("p"), new StringPrefixFormatter("pp")); PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new StringSuffixFormatter("s"), new StringSuffixFormatter("s")); PhlocTestUtils.testDefaultImplementationWithDifferentContentObject( new StringSuffixFormatter("s"), new StringSuffixFormatter("ss")); }
@Test public void testEqualsAndHashcode() { PhlocTestUtils.testDefaultImplementationWithEqualContentObject( new URLResourceProvider(), new URLResourceProvider()); }