Skip to content
Permalink
Browse files

[JENKINS-41124] Add re-verification to all the migration tests after …

…Jenkins restart
  • Loading branch information...
stephenc committed Jan 19, 2017
1 parent 663cb3d commit 60e82a905a990270394983eef61f9e2f06857c5c
Showing with 63 additions and 0 deletions.
  1. +63 −0 src/test/java/integration/MigrationTest.java
@@ -99,6 +99,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
@@ -114,6 +121,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

@Test
@@ -130,6 +144,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
@@ -146,6 +167,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
@@ -162,6 +190,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

@Test
@@ -179,6 +214,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
@@ -195,6 +237,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

/**
@@ -211,6 +260,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

@Test
@@ -228,6 +284,13 @@ public void evaluate() throws Throwable {
assertDataMigrated(foo);
}
});
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

private void assertDataMigrated(TopLevelItem foo) throws Exception {

0 comments on commit 60e82a9

Please sign in to comment.
You can’t perform that action at this time.