Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions gooddata-java-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>gooddata-java-parent</artifactId>
<groupId>com.gooddata</groupId>
<version>3.12.1+api3-SNAPSHOT</version>
<version>3.13.0+api3-SNAPSHOT</version>
</parent>

<dependencies>
Expand All @@ -32,11 +32,11 @@
<artifactId>commons-lang3</artifactId>
</dependency>

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand Down Expand Up @@ -78,7 +78,7 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
<scope>test</scope>
</dependency>
Expand All @@ -100,6 +100,11 @@
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ExecutionResultTest extends Specification {
def warnings = result.warnings
warnings == [new Warning('gdc123', 'Some msg %s %s %s', ['bum', 1, null])]

result.toString()
// result.toString()
}

def "should set properties"() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.account;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.model.account.Account.AuthenticationMode.SSO;
import static net.javacrumbs.jsonunit.JsonMatchers.jsonEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package com.gooddata.sdk.model.account;

import org.hamcrest.Matchers;
import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.common.util.ResourceUtils.readObjectFromResource;
import static org.hamcrest.CoreMatchers.is;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.auditevent;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.LocalDate;
import java.time.ZonedDateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import com.gooddata.sdk.common.collections.Paging;
import org.springframework.web.util.UriTemplate;
import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.LocalDate;
import java.time.ZonedDateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.auditevent;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.LocalDate;
import java.time.ZonedDateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import com.gooddata.sdk.common.collections.Paging;
import org.springframework.web.util.UriTemplate;
import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.LocalDate;
import java.time.ZonedDateTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.connector;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.LocalDateTime;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.connector;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static net.javacrumbs.jsonunit.JsonMatchers.jsonEquals;
import static net.javacrumbs.jsonunit.core.util.ResourceUtils.resource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.connector;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.model.connector.ConnectorType.ZENDESK4;
import static net.javacrumbs.jsonunit.JsonMatchers.jsonEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.connector;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.model.connector.Status.Code.ERROR;
import static com.gooddata.sdk.common.util.ResourceUtils.readObjectFromResource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
package com.gooddata.sdk.model.connector;


import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.util.HashMap;
import java.util.Map;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.testng.Assert.assertFalse;
import static org.testng.AssertJUnit.assertNull;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;

public class ReloadTest {

Expand All @@ -33,7 +33,7 @@ public class ReloadTest {
private Map<String, Long> startTimes;
private Map<String, String> links;

@BeforeMethod
@BeforeEach
public void setUp() {
startTimes = new HashMap<>();
startTimes.put(Reload.CHATS_START_TIME_PROPERTY, CHATS_START_TIME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.connector;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.model.connector.Status.Code.ERROR;
import static com.gooddata.sdk.model.connector.Status.Code.SYNCHRONIZED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package com.gooddata.sdk.model.connector;

import com.gooddata.sdk.model.connector.Zendesk4ProcessExecution.DownloadParams;
import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.Instant;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.connector;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.model.connector.ConnectorType.ZENDESK4;
import static com.gooddata.sdk.model.connector.Zendesk4Settings.Zendesk4Type.plus;
Expand All @@ -17,6 +17,7 @@
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.text.MatchesPattern.matchesPattern;
import static org.junit.jupiter.api.Assertions.assertThrows;

public class Zendesk4SettingsTest {

Expand Down Expand Up @@ -65,16 +66,16 @@ public void testGetConnectorType() throws Exception {
assertThat(new Zendesk4Settings("url").getConnectorType(), is(ZENDESK4));
}

@Test(expectedExceptions = {IllegalArgumentException.class})
@Test
public void testSetApiUrlWithEmptyValue() throws Exception {
final Zendesk4Settings settings = new Zendesk4Settings("old url");
settings.setApiUrl("");
assertThrows(IllegalArgumentException.class, () -> settings.setApiUrl(""));
}

@Test(expectedExceptions = {IllegalArgumentException.class})
@Test
public void testSetApiUrlWithNull() throws Exception {
final Zendesk4Settings settings = new Zendesk4Settings("old url");
settings.setApiUrl(null);
assertThrows(IllegalArgumentException.class, () -> settings.setApiUrl(null));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.dataload;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.util.LinkedHashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.dataload.processes;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static net.javacrumbs.jsonunit.JsonMatchers.jsonEquals;
import static net.javacrumbs.jsonunit.core.util.ResourceUtils.resource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.dataload.processes;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.common.util.ResourceUtils.readObjectFromResource;
import static org.hamcrest.CoreMatchers.is;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.dataload.processes;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.ZonedDateTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.dataload.processes;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import static com.gooddata.sdk.common.util.ResourceUtils.readObjectFromResource;
import static org.hamcrest.MatcherAssert.assertThat;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
package com.gooddata.sdk.model.dataload.processes;

import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package com.gooddata.sdk.model.dataload.processes;


import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.time.ZonedDateTime;
import java.util.HashMap;
Expand Down
Loading
Loading