Skip to content

Commit

Permalink
Discard changes to src/test/java/integration/MigrationTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Oct 13, 2024
1 parent 8718f94 commit c6198ed
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/test/java/integration/MigrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,20 @@ public void evaluate() throws Throwable {
@Test
@LocalData
public void nameMangling_folder_reload() throws Exception {
r.then((j) -> {
OrganizationFolder foo = j.jenkins.getItemByFullName("foo", OrganizationFolder.class);
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
OrganizationFolder foo = r.j.jenkins.getItemByFullName("foo", OrganizationFolder.class);
foo.doReload();
assertDataMigrated(foo);
}
});
r.then((j) -> {
TopLevelItem foo = j.jenkins.getItem("foo");
r.addStep(new Statement() {
@Override
public void evaluate() throws Throwable {
TopLevelItem foo = r.j.jenkins.getItem("foo");
assertDataMigrated(foo);
}
});
}

Expand Down

0 comments on commit c6198ed

Please sign in to comment.