@Test public void testSortOfAllZeros() { List<ProxyConnectorConfiguration> proxies = new ArrayList<>(); proxies.add( createConnector( "corporate", 0 ) ); proxies.add( createConnector( "snapshots", 0 ) ); proxies.add( createConnector( "3rdparty", 0 ) ); proxies.add( createConnector( "sandbox", 0 ) ); Collections.sort( proxies, ProxyConnectorConfigurationOrderComparator.getInstance() ); assertProxyOrder( new String[]{ "corporate", "snapshots", "3rdparty", "sandbox" }, proxies ); }
public static ProxyConnectorConfigurationOrderComparator getInstance() { return INSTANCE; }
ProxyConnectorConfigurationOrderComparator implements Comparator<ProxyConnectorConfiguration> { public static ProxyConnectorConfigurationOrderComparator getInstance() { return INSTANCE; } }
ProxyConnectorConfigurationOrderComparator implements Comparator<ProxyConnectorConfiguration> { public static ProxyConnectorConfigurationOrderComparator getInstance() { return INSTANCE; }  }
ProxyConnectorConfigurationOrderComparator implements Comparator<ProxyConnectorConfiguration> { public static ProxyConnectorConfigurationOrderComparator getInstance() { return INSTANCE; }  @Override int compare( ProxyConnectorConfiguration o1, ProxyConnectorConfiguration o2 ); static ProxyConnectorConfigurationOrderComparator getInstance(); }
ProxyConnectorConfigurationOrderComparator implements Comparator<ProxyConnectorConfiguration> { public static ProxyConnectorConfigurationOrderComparator getInstance() { return INSTANCE; }  @Override int compare( ProxyConnectorConfiguration o1, ProxyConnectorConfiguration o2 ); static ProxyConnectorConfigurationOrderComparator getInstance();  }