Skip to content

Commit

Permalink
objectionary#3140: renamed to WeHaveCargo like WeAreOnline is named
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed May 13, 2024
1 parent dfcc27e commit c93507c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*
* @since 0.1
*/
@ExtendWith({WeAreOnline.class, CargoCondition.class})
@ExtendWith({WeAreOnline.class, WeHaveCargo.class})
final class BinarizeMojoTest {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@

/**
* JUnit's extension to skip a test if there is no cargo.
* Cargo is a build system for rust so it is required for rust inserts.
* Cargo is a build system for rust. so it is required for rust inserts.
*
* @since 0.30
*/
@SuppressWarnings("JTCOP.RuleAllTestsHaveProductionClass")
public final class CargoCondition implements ExecutionCondition {
public final class WeHaveCargo implements ExecutionCondition {

@Override
public ConditionEvaluationResult evaluateExecutionCondition(
final ExtensionContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Collectors;
import org.eolang.maven.CargoCondition;
import org.eolang.maven.WeHaveCargo;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
Expand All @@ -45,7 +45,7 @@
final class RustNodeTest {

@Test
@ExtendWith(CargoCondition.class)
@ExtendWith(WeHaveCargo.class)
void generatesRust(@TempDir final Path temp) throws IOException {
final XML insert = new XMLDocument(
"<rust code=\"75 73 65 20\" code_loc=\"Φ.org.eolang.custom-rust.r.α0\"><dependencies/></rust>"
Expand Down

0 comments on commit c93507c

Please sign in to comment.