@Test public void isDuplicate_NotSame() { assertFalse( isDuplicate( singletonList( mockObject( "qwerty" ) ), mockObject( "asdfg" ) ) ); }
protected static boolean isDuplicate( List<? extends SharedObjectInterface> objects, SharedObjectInterface object ) { String newName = object.getName(); for ( SharedObjectInterface soi : objects ) { if ( soi.getName().equalsIgnoreCase( newName ) ) { return true; } } return false; }
SpoonSharedObjectDelegate extends SpoonDelegate { protected static boolean isDuplicate( List<? extends SharedObjectInterface> objects, SharedObjectInterface object ) { String newName = object.getName(); for ( SharedObjectInterface soi : objects ) { if ( soi.getName().equalsIgnoreCase( newName ) ) { return true; } } return false; } }
SpoonSharedObjectDelegate extends SpoonDelegate { protected static boolean isDuplicate( List<? extends SharedObjectInterface> objects, SharedObjectInterface object ) { String newName = object.getName(); for ( SharedObjectInterface soi : objects ) { if ( soi.getName().equalsIgnoreCase( newName ) ) { return true; } } return false; } SpoonSharedObjectDelegate( Spoon spoon ); }
SpoonSharedObjectDelegate extends SpoonDelegate { protected static boolean isDuplicate( List<? extends SharedObjectInterface> objects, SharedObjectInterface object ) { String newName = object.getName(); for ( SharedObjectInterface soi : objects ) { if ( soi.getName().equalsIgnoreCase( newName ) ) { return true; } } return false; } SpoonSharedObjectDelegate( Spoon spoon ); void setSharedObjectSyncUtil( SharedObjectSyncUtil sharedObjectSyncUtil ); }
SpoonSharedObjectDelegate extends SpoonDelegate { protected static boolean isDuplicate( List<? extends SharedObjectInterface> objects, SharedObjectInterface object ) { String newName = object.getName(); for ( SharedObjectInterface soi : objects ) { if ( soi.getName().equalsIgnoreCase( newName ) ) { return true; } } return false; } SpoonSharedObjectDelegate( Spoon spoon ); void setSharedObjectSyncUtil( SharedObjectSyncUtil sharedObjectSyncUtil );  }