-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/master'
- Loading branch information
Showing
6 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tools/ninja/src/test/java/com/evolveum/midpoint/ninja/JenkinsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (C) 2010-2023 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.ninja; | ||
|
||
import org.springframework.test.annotation.DirtiesContext; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.testng.annotations.BeforeClass; | ||
import org.testng.annotations.Listeners; | ||
import org.testng.annotations.Test; | ||
|
||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
|
||
@ContextConfiguration(locations = "classpath:ctx-ninja-test.xml") | ||
@DirtiesContext | ||
@Listeners({ com.evolveum.midpoint.tools.testng.AlphabeticalMethodInterceptor.class }) | ||
public class JenkinsTest extends NinjaSpringTest { | ||
|
||
private static final Trace LOGGER = TraceManager.getTrace(JenkinsTest.class); | ||
|
||
@BeforeClass(alwaysRun = true, dependsOnMethods = "springTestContextBeforeTestClass") | ||
protected void springTestContextPrepareTestInstance() throws Exception { | ||
LOGGER.info("springTestContextPrepareTestInstance started"); | ||
super.springTestContextPrepareTestInstance(); | ||
LOGGER.info("springTestContextPrepareTestInstance finished"); | ||
} | ||
|
||
@BeforeClass | ||
@Override | ||
public void beforeClass() throws Exception { | ||
LOGGER.info("beforeClass started"); | ||
super.beforeClass(); | ||
LOGGER.info("beforeClass finished"); | ||
} | ||
|
||
@BeforeClass | ||
|
||
@Test | ||
public void emptyTest() throws Exception { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters