Skip to content

Commit

Permalink
fix: issues with mvn verify
Browse files Browse the repository at this point in the history
  • Loading branch information
gibiw committed Nov 25, 2024
1 parent 3a7045d commit c3d5832
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.qase</groupId>
<artifactId>qase-java</artifactId>
<packaging>pom</packaging>
<version>4.0.2</version>
<version>4.0.3</version>
<modules>
<module>qase-java-commons</module>
<module>qase-api-client</module>
Expand Down Expand Up @@ -240,7 +240,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.13.0</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package io.qase.commons;

import io.qase.commons.models.domain.TestResult;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Slf4j
public final class CasesStorage {

private static final Logger logger = LoggerFactory.getLogger(CasesStorage.class);
private static final ThreadLocal<TestResult> CURRENT_CASE = new ThreadLocal<>();

public static void startCase(TestResult resultCreate) {
Expand All @@ -32,13 +32,13 @@ public static boolean isCaseInProgress() {

private static void checkCaseIsInProgress() {
if (!isCaseInProgress()) {
log.error("A case has not been started yet.");
logger.error("A case has not been started yet.");
}
}

private static void checkCaseIsNotInProgress() {
if (isCaseInProgress()) {
log.error("Previous case is still in progress.");
logger.error("Previous case is still in progress.");
}
}
}
10 changes: 5 additions & 5 deletions qase-java-commons/src/main/java/io/qase/commons/StepStorage.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package io.qase.commons;

import io.qase.commons.models.domain.StepResult;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.LinkedList;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Slf4j
public final class StepStorage {

private static final Logger logger = LoggerFactory.getLogger(StepStorage.class);
private static final ThreadLocal<StepResult> STEP_IN_PROGRESS = new ThreadLocal<>();
private static final ThreadLocal<String> STEP_ID = new ThreadLocal<>();
private static final ThreadLocal<LinkedList<StepResult>> STEPS_STORAGE =
Expand Down Expand Up @@ -58,13 +58,13 @@ public static boolean isStepInProgress() {

private static void checkStepIsInProgress() {
if (!isStepInProgress()) {
log.error("A step has not been started yet.");
logger.error("A step has not been started yet.");
}
}

private static void checkStepIsNotInProgress() {
if (isStepInProgress()) {
log.error("A previous step is still in progress.");
logger.error("A previous step is still in progress.");
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package io.qase.commons.config;

import lombok.Getter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Getter

public class BatchConfig {
private static final Logger logger = LoggerFactory.getLogger(BatchConfig.class);

Expand All @@ -19,4 +18,7 @@ public void setSize(int size) {
this.size = size;
}

public int getSize() {
return size;
}
}

0 comments on commit c3d5832

Please sign in to comment.