Skip to content

Commit

Permalink
Prepare archiving the project
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schnell committed Feb 11, 2024
1 parent d9edddf commit bc83448
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A home for additional useful unit testing modules for Java.
> because they are not strictly bound to test functions.
## Versions
- 0.12.0-SNAPSHOT = LAST VERSION (Will never be released :worried:)
- 0.11.0 (or later) = **Java 17** with **junit5** / **WeldJUnit4Runner removed** in favor of [weld-junit5](https://github.com/weld/weld-testing)
- 0.10.0 = **Java 11** with new **jakarta** namespace
- 0.9.x = **Java 11** before namespace change from 'javax' to 'jakarta'
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/fuin/units4j/MultipleCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
*
* @param <CONTEXT>
* Type of the test context.
*
* @deprecated Use class with same name from <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Deprecated
public final class MultipleCommands<CONTEXT> implements TestCommand<CONTEXT> {

private final List<TestCommand<CONTEXT>> commands;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/fuin/units4j/TestCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
*
* @param <CONTEXT>
* Type of the context.
*
* @deprecated Use class with same name from <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Deprecated
public interface TestCommand<CONTEXT> {

/**
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/fuin/units4j/TestOmitted.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@

/**
* States that the annotated test class contains no tests by intention. This avoids test failures when test coverage checks are done.
*
* @deprecated Use class with same name from <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Deprecated
public @interface TestOmitted {

/**
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/fuin/units4j/Units4JUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ public static <T> T unmarshal(@NotNull final JAXBContext ctx, final String xmlDa
* Name of the attribute to set.
* @param value
* Value to set for the attribute.
*
* @deprecated Use Utils4J class that has same method: <a href="https://github.com/fuinorg/utils4j">Utils4J</a>.
*/
@Deprecated
public static void setPrivateField(final Object obj, final String name, final Object value) {
try {
final Field field = obj.getClass().getDeclaredField(name);
Expand Down Expand Up @@ -533,7 +536,10 @@ public static void index(final Indexer indexer, final ClassLoader cl, final Stri
* Attribute name and new value.
*
* @return Replaced content.
*
* @deprecated Use <a href="https://www.xmlunit.org/">XMLUnit</a> and ignore field while comparing result.
*/
@Deprecated
public static String replaceXmlAttr(final String xml, final KV... keyValues) {

final List<String> searchList = new ArrayList<>();
Expand Down

0 comments on commit bc83448

Please sign in to comment.