Polishing
This commit is contained in:
@@ -53,7 +53,7 @@ public class PropertyComparatorTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompoundComparator() {
|
public void testChainedComparators() {
|
||||||
Comparator<Dog> c = new PropertyComparator<>("lastName", false, true);
|
Comparator<Dog> c = new PropertyComparator<>("lastName", false, true);
|
||||||
|
|
||||||
Dog dog1 = new Dog();
|
Dog dog1 = new Dog();
|
||||||
@@ -74,9 +74,10 @@ public class PropertyComparatorTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCompoundComparatorInvert() {
|
public void testChainedComparatorsReversed() {
|
||||||
Comparator<Dog> c = (new PropertyComparator<Dog>("lastName", false, true)).
|
Comparator<Dog> c = (new PropertyComparator<Dog>("lastName", false, true)).
|
||||||
thenComparing(new PropertyComparator<>("firstName", false, true));
|
thenComparing(new PropertyComparator<>("firstName", false, true));
|
||||||
|
|
||||||
Dog dog1 = new Dog();
|
Dog dog1 = new Dog();
|
||||||
dog1.setFirstName("macy");
|
dog1.setFirstName("macy");
|
||||||
dog1.setLastName("grayspots");
|
dog1.setLastName("grayspots");
|
||||||
@@ -91,7 +92,6 @@ public class PropertyComparatorTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
private static class Dog implements Comparable<Object> {
|
private static class Dog implements Comparable<Object> {
|
||||||
|
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|||||||
@@ -117,7 +117,9 @@ public class OracleTableMetaDataProvider extends GenericTableMetaDataProvider {
|
|||||||
con = (Connection) con.unwrap(oracleConClass);
|
con = (Connection) con.unwrap(oracleConClass);
|
||||||
}
|
}
|
||||||
catch (ClassNotFoundException | SQLException ex) {
|
catch (ClassNotFoundException | SQLException ex) {
|
||||||
logger.warn("Unable to include synonyms in table metadata lookup - no Oracle Connection: " + ex);
|
if (logger.isWarnEnabled()) {
|
||||||
|
logger.warn("Unable to include synonyms in table metadata lookup - no Oracle Connection: " + ex);
|
||||||
|
}
|
||||||
super.initializeWithTableColumnMetaData(databaseMetaData, catalogName, schemaName, tableName);
|
super.initializeWithTableColumnMetaData(databaseMetaData, catalogName, schemaName, tableName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user