question: public void testCreationUnique ( ) { Instances data ; ArrayList < Attribute > atts ; String relName ; relName = "testCreationUnique" ; atts = new ArrayList < Attribute > ( ) ; atts . add ( new Attribute ( "att-numeric_1" ) ) ; atts . add ( new Attribute ( "att-numeric_2" ) ) ; atts . add ( new Attribute ( "att-data_1" , "yyyy-MM-dd HH:mm" ) ) ; atts . add ( new Attribute ( "att-nominal_1" , new ArrayList < String > ( Arrays . asList ( new String [ ] { "1" , "2" , "3" } ) ) ) ) ; atts . add ( new Attribute ( "att-nominal_2" , new ArrayList < String > ( Arrays . asList ( new String [ ] { "yes" , "no" } ) ) ) ) ; atts . add ( new Attribute ( "att-string_1" , ( ArrayList < String > ) null ) ) ; data = new Instances ( relName , atts , 0 ) ; assertEquals ( "relation name differs" , relName , data . relationName ( ) ) ; assertEquals ( "# of attributes differ" , atts . size ( ) , data . numAttributes ( ) ) ; }
target:  Tests the creation of a dataset (unique attribute names).