STest.java [test/service_tests] Revision: Date:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service_tests;
import csip.test.ServiceTest2;
import java.io.File;
import java.util.Properties;
import org.codehaus.jettison.json.JSONArray;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
/**
*
* @author Brad
*/
public class STest {
@Rule
public TestName name = new TestName();
private void run() throws Exception {
String testFolder = new File(getClass().getCanonicalName().replace('.', '/')).getParent();
JSONArray r = ServiceTest2.run(new Properties(), "test/" + testFolder + "/" + name.getMethodName() + ".json");
Assert.assertTrue(r.getJSONObject(0).getInt("successful") == 1);
}
// all test cases. the name corresponds to the
// json file name with no extension
//@Test public void m_rusle2_1_3__1_Bahaigrass_filter_strip_corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__1_CA_San_Joaquin_z34_CornSil() throws Exception { run(); }
//@Test public void m_rusle2_1_3__1_diversion_0_05_percent_bottom_corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__2_parallel_tile_outlet_terraces_0_05_percent_1in_middle_bottom_wheat() throws Exception { run(); }
@Test public void m_rusle2_1_3__2_silt_fences_in_middle_wheat() throws Exception { run(); }
@Test public void m_rusle2_1_3__3_straw_bale_barriers_bottom_kale() throws Exception { run(); }
@Test public void m_rusle2_1_3__3_water_and_sediment_control_basins_2in_middle_bottom_kale() throws Exception { run(); }
@Test public void m_rusle2_1_3__4_vetiver_grass_bottom_soybeans() throws Exception { run(); }
@Test public void m_rusle2_1_3__50ft_cool_season_grass_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_1_3__5_hillside_ditches_1_percent_middle_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_1_3__AR_Arkansas_z42_RiceSoy() throws Exception { run(); }
@Test public void m_rusle2_1_3__a_up_and_down_corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__basic_corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__basic_kale() throws Exception { run(); }
@Test public void m_rusle2_1_3__basic_soybeans() throws Exception { run(); }
@Test public void m_rusle2_1_3__basic_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_1_3__basic_wheat() throws Exception { run(); }
@Test public void m_rusle2_1_3__b_0_1_percent_wheat() throws Exception { run(); }
@Test public void m_rusle2_1_3__b_1_percent_kale() throws Exception { run(); }
@Test public void m_rusle2_1_3__CA_San_Joaquin_z34_CornSil() throws Exception { run(); }
@Test public void m_rusle2_1_3__c_10_percent_soybeans() throws Exception { run(); }
@Test public void m_rusle2_1_3__c_perfect_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_1_3__FL_PalmBeach_z70_Soy() throws Exception { run(); }
@Test public void m_rusle2_1_3__FL_PalmBeach_z70_TomCar() throws Exception { run(); }
//@Test public void m_rusle2_1_3__FM_Pohnpei_z74_Corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__IA_Cherokee_z4_CornSoy() throws Exception { run(); }
@Test public void m_rusle2_1_3__ID_Tindahay_z10_IrrPot() throws Exception { run(); }
@Test public void m_rusle2_1_3__ID_Tindahay_z10_IrrSWht_R2() throws Exception { run(); }
@Test public void m_rusle2_1_3__IL_Johnson_z17_CornSoy() throws Exception { run(); }
@Test public void m_rusle2_1_3__MT_Hill_z6_WhtFal() throws Exception { run(); }
@Test public void m_rusle2_1_3__NC_Perquimens_z67_SBean_Farm() throws Exception { run(); }
@Test public void m_rusle2_1_3__rock_10_corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__rock_20_wheat() throws Exception { run(); }
@Test public void m_rusle2_1_3__rock_30_kale() throws Exception { run(); }
@Test public void m_rusle2_1_3__rock_40_soybeans() throws Exception { run(); }
@Test public void m_rusle2_1_3__rock_50_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_1_3__seg_1_corn() throws Exception { run(); }
@Test public void m_rusle2_1_3__seg_2_wheat() throws Exception { run(); }
@Test public void m_rusle2_1_3__seg_3_kale() throws Exception { run(); }
@Test public void m_rusle2_1_3__seg_4_soybeans() throws Exception { run(); }
@Test public void m_rusle2_1_3__seg_5_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_1_3__ten_hillside_ditches_0_05_percent_in_middle_soybeans() throws Exception { run(); }
@Test public void m_rusle2_1_3__TX_Dawson_z19_Cot() throws Exception { run(); }
@Test public void m_rusle2_1_3__VA_Virginia_Beach_z67_SBeanCC() throws Exception { run(); }
@Test public void m_rusle2_1_3__WA_Steptoe_z47_SprWht() throws Exception { run(); }
//@Test public void m_rusle2_1_3__WA_Whidbey_z53_CornSil() throws Exception { run(); }
// 2.1
@Test public void m_rusle2_2_1__1_Bahaigrass_filter_strip_corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__1_diversion_0_05_percent_bottom_corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__2_parallel_tile_outlet_terraces_0_05_percent_1in_middle_bottom_wheat() throws Exception { run(); }
@Test public void m_rusle2_2_1__2_silt_fences_in_middle_wheat() throws Exception { run(); }
@Test public void m_rusle2_2_1__3_straw_bale_barriers_bottom_kale() throws Exception { run(); }
@Test public void m_rusle2_2_1__3_water_and_sediment_control_basins_2in_middle_bottom_kale() throws Exception { run(); }
@Test public void m_rusle2_2_1__4_vetiver_grass_bottom_soybeans() throws Exception { run(); }
@Test public void m_rusle2_2_1__50ft_cool_season_grass_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_2_1__5_hillside_ditches_1_percent_middle_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_2_1__AR_Arkansas_z42_RiceSoy() throws Exception { run(); }
@Test public void m_rusle2_2_1__a_up_and_down_corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__basic_corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__basic_kale() throws Exception { run(); }
@Test public void m_rusle2_2_1__basic_soybeans() throws Exception { run(); }
@Test public void m_rusle2_2_1__basic_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_2_1__basic_wheat() throws Exception { run(); }
@Test public void m_rusle2_2_1__b_0_1_percent_wheat() throws Exception { run(); }
@Test public void m_rusle2_2_1__b_1_percent_kale() throws Exception { run(); }
@Test public void m_rusle2_2_1__CA_San_Joaquin_z34_CornSil() throws Exception { run(); }
@Test public void m_rusle2_2_1__c_10_percent_soybeans() throws Exception { run(); }
@Test public void m_rusle2_2_1__c_perfect_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_2_1__FL_PalmBeach_z70_TomCar() throws Exception { run(); }
@Test public void m_rusle2_2_1__FL_PalmBeach_z70_Soy() throws Exception { run(); }
@Test public void m_rusle2_2_1__FM_Pohnpei_z74_Corn_() throws Exception { run(); }
@Test public void m_rusle2_2_1__FM_Pohnpei_z74_Corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__IA_Cherokee_z4_CornSoy() throws Exception { run(); }
@Test public void m_rusle2_2_1__ID_Tindahay_z10_IrrPot() throws Exception { run(); }
@Test public void m_rusle2_2_1__ID_Tindahay_z10_IrrSWht_R2() throws Exception { run(); }
@Test public void m_rusle2_2_1__IL_Johnson_z17_CornSoy() throws Exception { run(); }
@Test public void m_rusle2_2_1__MT_Hill_z6_WhtFal() throws Exception { run(); }
@Test public void m_rusle2_2_1__NC_Perquimens_z67_SBean_Farm() throws Exception { run(); }
@Test public void m_rusle2_2_1__rock_10_corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__rock_20_wheat() throws Exception { run(); }
@Test public void m_rusle2_2_1__rock_30_kale() throws Exception { run(); }
@Test public void m_rusle2_2_1__rock_40_soybeans() throws Exception { run(); }
@Test public void m_rusle2_2_1__rock_50_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_2_1__seg_1_corn() throws Exception { run(); }
@Test public void m_rusle2_2_1__seg_2_wheat() throws Exception { run(); }
@Test public void m_rusle2_2_1__seg_3_kale() throws Exception { run(); }
@Test public void m_rusle2_2_1__seg_4_soybeans() throws Exception { run(); }
@Test public void m_rusle2_2_1__seg_5_stripcropping() throws Exception { run(); }
@Test public void m_rusle2_2_1__ten_hillside_ditches_0_05_percent_in_middle_soybeans() throws Exception { run(); }
@Test public void m_rusle2_2_1__TX_Dawson_z19_Cot() throws Exception { run(); }
@Test public void m_rusle2_2_1__VA_Virginia_Beach_z67_SBeanCC() throws Exception { run(); }
@Test public void m_rusle2_2_1__WA_Steptoe_z47_SprWht() throws Exception { run(); }
@Test public void m_rusle2_2_1__WA_Whidbey_z53_CornSil() throws Exception { run(); }
}