Skip to content

Commit

Permalink
clean of Comparator repetitions unit tests
Browse files Browse the repository at this point in the history
issue #31
  • Loading branch information
Valentin Noel committed Sep 12, 2013
1 parent 2470e39 commit db14f07
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions libraries/comparator/tests/comparatorTestsRepetitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,6 @@ BOOST_AUTO_TEST_CASE( comparator_comparator_validation_repetition_expr_simple )

LOG_INFO( "\n==== REPORT ====" );
LOG_INFO( exporter.getXmlString() );

std::istringstream xmlStream( exporter.getXmlString() );
std::istringstream jsonStream( jsonString );
bpt::ptree xmlReport;
bpt::ptree jsonReport;
bpt::read_xml ( xmlStream, xmlReport );
bpt::read_json( jsonStream, jsonReport );

std::vector< std::string > xmlIds;
std::vector< std::string > jsonIds;

fillVectorXml( xmlReport, xmlIds, "<xmlattr>.id" );
fillVectorJson( jsonReport.get_child( "header" ), jsonIds, "id" );
}
}

Expand Down Expand Up @@ -207,12 +194,6 @@ BOOST_AUTO_TEST_CASE( comparator_comparator_validation_repetition_expr_group )
bpt::read_json( jsonStream, jsonReport );

BOOST_CHECK_EQUAL( xmlReport.size(), jsonReport.get_child( "header" ).size() );

std::vector< std::string > xmlIds;
std::vector< std::string > jsonIds;

fillVectorXml( xmlReport, xmlIds, "<xmlattr>.id" );
fillVectorJson( jsonReport.get_child( "header" ), jsonIds, "id" );
}
}

Expand Down Expand Up @@ -331,12 +312,6 @@ BOOST_AUTO_TEST_CASE( comparator_comparator_validation_repetition_range_simple )
bpt::read_json( jsonStream, jsonReport );

BOOST_CHECK_EQUAL( xmlReport.size(), jsonReport.get_child( "header" ).size() );

std::vector< std::string > xmlIds;
std::vector< std::string > jsonIds;

fillVectorXml( xmlReport, xmlIds, "<xmlattr>.id" );
fillVectorJson( jsonReport.get_child( "header" ), jsonIds, "id" );
}
}

Expand Down Expand Up @@ -560,12 +535,6 @@ BOOST_AUTO_TEST_CASE( comparator_comparator_validation_repetition_range_group )
bpt::read_json( jsonStream, jsonReport );

BOOST_CHECK_EQUAL( xmlReport.size(), jsonReport.get_child( "header" ).size() );

std::vector< std::string > xmlIds;
std::vector< std::string > jsonIds;

fillVectorXml( xmlReport, xmlIds, "<xmlattr>.id" );
fillVectorJson( jsonReport.get_child( "header" ), jsonIds, "id" );
}
}

Expand Down Expand Up @@ -705,12 +674,6 @@ BOOST_AUTO_TEST_CASE( comparator_comparator_validation_repetition_range_group_co
bpt::read_json( jsonStream, jsonReport );

BOOST_CHECK_EQUAL( xmlReport.size(), jsonReport.get_child( "header" ).size() );

std::vector< std::string > xmlIds;
std::vector< std::string > jsonIds;

fillVectorXml( xmlReport, xmlIds, "<xmlattr>.id" );
fillVectorJson( jsonReport.get_child( "header" ), jsonIds, "id" );
}
}

Expand Down

0 comments on commit db14f07

Please sign in to comment.