Strabon

changeset 1029:bcc5fff82a71

Sorted Bindings' List.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Thu Apr 11 20:40:42 2013 +0300 (2013-04-11)
parents e0f078b158b3
children c7fdfaa7ab52
files testsuite/src/test/java/eu/earthobservatory/runtime/postgis/Utils.java
line diff
     1.1 --- a/testsuite/src/test/java/eu/earthobservatory/runtime/postgis/Utils.java	Thu Apr 11 20:33:38 2013 +0300
     1.2 +++ b/testsuite/src/test/java/eu/earthobservatory/runtime/postgis/Utils.java	Thu Apr 11 20:40:42 2013 +0300
     1.3 @@ -28,6 +28,7 @@
     1.4  import java.sql.ResultSet;
     1.5  import java.sql.SQLException;
     1.6  import java.util.ArrayList;
     1.7 +import java.util.Collections;
     1.8  import java.util.Iterator;
     1.9  import java.util.List;
    1.10  import java.util.Properties;
    1.11 @@ -190,7 +191,11 @@
    1.12  		
    1.13  		assertFalse("Results are not the expected.", expectedResults.hasNext() || actualResults.hasNext());
    1.14  		
    1.15 +		//Sort bindings alphabetically
    1.16 +		Collections.sort(eBindingList);
    1.17 +		Collections.sort(aBindingList);
    1.18  
    1.19 +		//add here iterator and check the lists with assertEquals
    1.20  		
    1.21  		actualResults.close();
    1.22  		expectedResults.close();