change order of tests
@@ -54,7 +54,9 @@ import com.thinkbiganalytics.policy.rest.model.FieldValidationRule;
import com.thinkbiganalytics.security.rest.model.User;
import org.junit.Assert;
+import org.junit.FixMethodOrder;
import org.junit.Test;
+import org.junit.runners.MethodSorters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -78,6 +80,7 @@ import java.util.concurrent.TimeUnit;
* query and asserts the number of rows returned.
*
*/
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class FeedIT extends IntegrationTestBase {
private static final Logger LOG = LoggerFactory.getLogger(FeedIT.class);
@@ -193,7 +196,7 @@ public class FeedIT extends IntegrationTestBase {
FieldPolicy creditCard = policies.get(7);
FieldStandardizationRule base64EncodeBinary = creditCard.getStandardization().get(0);
- //base64EncodeBinary.getProperties().get(0).setValue("STRING"); //change existing standardiser property
+ base64EncodeBinary.getProperties().get(0).setValue("STRING"); //change existing standardiser property
feed.getOptions().setSkipHeader(false);
@@ -231,7 +234,7 @@ public class FeedIT extends IntegrationTestBase {
Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldPolicies/5/profile", "true")));
Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldPolicies/5/index", "true")));
Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldPolicies/5/validation/0/properties/0/value", "new value")));
- // Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldPolicies/7/standardization/0/properties/0/value", "STRING")));
+ Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldPolicies/7/standardization/0/properties/0/value", "STRING")));
Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldPolicies/8/standardization/0/properties/0/value", "STRING")));
Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/targetMergeStrategy", "ROLLING_SYNC")));
Assert.assertTrue(versionPatchContains(diffs, new Diff("replace", "/table/fieldIndexString", "first_name,gender")));
