private static boolean versionsMatch ( String expectedVersions , Set < String > versions ) { Set < String > expectedSet = Sets . newHashSet ( expectedVersions . split ( "," ) ) ; return Sets . symmetricDifference ( expectedSet , versions ) . isEmpty ( ) ; }
Compare expected versions with given versions to see if they are the same or not .