Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Use common test class
Browse files Browse the repository at this point in the history
Moving from a deprecated method of defining test class to the common way.

Signed-off-by: Moti Asayag <masayag@redhat.com>
  • Loading branch information
masayag authored and openshift-merge-robot committed May 8, 2023
1 parent ed01a70 commit a225ce4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
6 changes: 6 additions & 0 deletions parodos-model-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@

import java.util.Map;

import junit.framework.TestCase;
import org.junit.jupiter.api.Test;

public class WorkParameterTest extends TestCase {
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class WorkParameterTest {

private static final String VALUE_PROVIDER_NAME = "valueProviderName";

String key = "key";

String description = "key description";

@Test
public void testGetAsJsonSchemaWithValidData() {

// given
Expand All @@ -29,6 +33,7 @@ public void testGetAsJsonSchemaWithValidData() {
assertEquals(result.get("required"), true);
}

@Test
public void testGetAsJsonSchemaWithoutType() {
// given
WorkParameter parameters = WorkParameter.builder().key(key).description(description).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
import java.util.List;
import java.util.Map;

import junit.framework.TestCase;
import org.junit.Test;
import org.junit.jupiter.api.Test;

public class WorkParameterTypeTest extends TestCase {
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class WorkParameterTypeTest {

@Test
public void testJsonSchema() {
Expand Down

0 comments on commit a225ce4

Please sign in to comment.