src/test/java/org/string_db/psicquic/index/RowBuilderTest.java
static void assertRowsEquals(Row expected, Row actual) {
        assertEquals("rows have different fileds: " + expected.keySet() + " - " + actual.keySet(), expected.keySet(), actual.keySet());
        final Collection<String> actualColumns = actual.keySet();
        for (String column : expected.keySet()) {
            assertTrue(actualColumns.contains(column));
            final Collection<Field> expectedFields = expected.getFields(column);
            final Collection<Field> actualFields = actual.getFields(column);
            assertEquals(actualFields.toString(), expectedFields.size(), actualFields.size());
            final Iterator<Field> expectedIterator = expectedFields.iterator();
            final Iterator<Field> actualIterator = actualFields.iterator();
            while (expectedIterator.hasNext()) {
                final Field expectedField = expectedIterator.next();
                final Field actualField = actualIterator.next();
                assertEquals(column + " column different: ", expectedField.getEntries(), actualField.getEntries());
            }
        }
    }
//ah Row&Field don't implement equals...
ah Row&Field don't implement equals
ah Row&Field don ' t implement equals
static void assertRowsEquals(Row expected, Row actual) {
        assertEquals("rows have different fileds: " + expected.keySet() + " - " + actual.keySet(), expected.keySet(), actual.keySet());
        final Collection<String> actualColumns = actual.keySet();
        for (String column : expected.keySet()) {
            assertTrue(actualColumns.contains(column));
            final Collection<Field> expectedFields = expected.getFields(column);
            final Collection<Field> actualFields = actual.getFields(column);
            assertEquals(actualFields.toString(), expectedFields.size(), actualFields.size());
            final Iterator<Field> expectedIterator = expectedFields.iterator();
            final Iterator<Field> actualIterator = actualFields.iterator();
            while (expectedIterator.hasNext()) {
                final Field expectedField = expectedIterator.next();
                final Field actualField = actualIterator.next();
                assertEquals(column + " column different: ", expectedField.getEntries(), actualField.getEntries());
            }
        }
    }
static void assertRowsEquals ( Row expected , Row actual ) { assertEquals ( "rows have different fileds: " + expected . keySet ( ) + " - " + actual . keySet ( ) , expected . keySet ( ) , actual . keySet ( ) ) ; final Collection < String > actualColumns = actual . keySet ( ) ; for ( String column : expected . keySet ( ) ) { assertTrue ( actualColumns . contains ( column ) ) ; final Collection < Field > expectedFields = expected . getFields ( column ) ; final Collection < Field > actualFields = actual . getFields ( column ) ; assertEquals ( actualFields . toString ( ) , expectedFields . size ( ) , actualFields . size ( ) ) ; final Iterator < Field > expectedIterator = expectedFields . iterator ( ) ; final Iterator < Field > actualIterator = actualFields . iterator ( ) ; while ( expectedIterator . hasNext ( ) ) { final Field expectedField = expectedIterator . next ( ) ; final Field actualField = actualIterator . next ( ) ; assertEquals ( column + " column different: " , expectedField . getEntries ( ) , actualField . getEntries ( ) ) ; } } }
ah Row&Field don't implement equals...
ah Row&Field don ' t implement equals ...