-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed use of Junit4 in core and any use of asciidoctorj-arquillian-…
…extension
- Loading branch information
1 parent
232f8b5
commit ecc710f
Showing
45 changed files
with
1,608 additions
and
1,550 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
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
38 changes: 38 additions & 0 deletions
38
...idoctorj-arquillian-extension/src/main/java/org/asciidoctor/junit/ClasspathResources.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,38 @@ | ||
package org.asciidoctor.junit; | ||
|
||
import org.asciidoctor.test.extension.ClasspathHelper; | ||
import org.junit.rules.TestRule; | ||
import org.junit.runner.Description; | ||
import org.junit.runners.model.Statement; | ||
|
||
/** | ||
* JUnit TestRule to handle classpath files. | ||
* <p> | ||
* Delegates to {@link ClasspathHelper}. | ||
*/ | ||
public class ClasspathResources implements TestRule { | ||
|
||
private ClasspathHelper classpathHelper; | ||
|
||
public ClasspathResources() { | ||
} | ||
|
||
public ClasspathResources(Class<?> clazz) { | ||
classpathHelper = new ClasspathHelper(clazz); | ||
} | ||
|
||
protected void before(Class<?> clazz) { | ||
classpathHelper = new ClasspathHelper(clazz); | ||
} | ||
|
||
@Override | ||
public Statement apply(final Statement base, final Description description) { | ||
return new Statement() { | ||
@Override | ||
public void evaluate() throws Throwable { | ||
before(description.getTestClass()); | ||
base.evaluate(); | ||
} | ||
}; | ||
} | ||
} |
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
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
Oops, something went wrong.