Skip to content
Snippets Groups Projects
Commit 88805f40 authored by Jagan Gottimukkula's avatar Jagan Gottimukkula
Browse files

fixed few test cases

parent c1db20c2
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -72,9 +72,6 @@ public class ElasticRepositoryDatastore implements ElasticRepository {
String host = this.kmsClient.decryptString(encryptedHost);
String portString = this.kmsClient.decryptString(encryptedPort);
String usernameAndPassword = this.kmsClient.decryptString(encryptedConfiguration);
log.info("HOST:" + host );
log.info("PORT:" + portString );
log.info("UP:" + usernameAndPassword );
Preconditions.checkNotNullOrEmpty(host, "host cannot be null");
Preconditions.checkNotNullOrEmpty(portString, "port cannot be null");
......
......@@ -16,7 +16,6 @@ package org.opengroup.osdu.indexer.logging;
import com.google.common.collect.Lists;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
......@@ -32,7 +31,6 @@ import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@Ignore
@RunWith(SpringRunner.class)
public class AuditLoggerTest {
......
......@@ -15,12 +15,10 @@
package org.opengroup.osdu.indexer.model;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;
@Ignore
@RunWith(SpringRunner.class)
public class ElasticTypeTest {
......
......@@ -15,11 +15,11 @@
package org.opengroup.osdu.indexer.service;
import com.google.gson.internal.LinkedTreeMap;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.opengroup.osdu.indexer.util.JobStatus;
import org.opengroup.osdu.indexer.util.parser.DateTimeParser;
import org.opengroup.osdu.indexer.util.parser.NumberParser;
import org.opengroup.osdu.is.core.logging.JaxRsDpsLog;
......@@ -32,7 +32,6 @@ import static org.junit.Assert.*;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.when;
@Ignore
@RunWith(SpringRunner.class)
public class AttributeParsingServiceImplTest {
......@@ -44,6 +43,8 @@ public class AttributeParsingServiceImplTest {
private DateTimeParser dateTimeParser;
@Mock
private JaxRsDpsLog log;
@Mock
private JobStatus jobStatus;
@InjectMocks
private AttributeParsingServiceImpl sut;
......
......@@ -18,7 +18,6 @@ import org.apache.http.HttpStatus;
import org.elasticsearch.client.RestHighLevelClient;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
......@@ -46,7 +45,6 @@ import static org.mockito.MockitoAnnotations.initMocks;
import static org.powermock.api.mockito.PowerMockito.mock;
import static org.powermock.api.mockito.PowerMockito.when;
@Ignore
@RunWith(SpringRunner.class)
@PrepareForTest({RestHighLevelClient.class})
public class IndexerSchemaServiceTest {
......
......@@ -16,9 +16,9 @@ package org.opengroup.osdu.indexer.util;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.opengroup.osdu.indexer.model.IndexingStatus;
import org.opengroup.osdu.indexer.model.OperationType;
......@@ -35,7 +35,6 @@ import java.util.stream.Collectors;
import static org.junit.Assert.*;
@Ignore
@RunWith(SpringRunner.class)
public class JobStatusTest {
......@@ -44,7 +43,7 @@ public class JobStatusTest {
@Mock
private JaxRsDpsLog log;
@Mock
@InjectMocks
private JobStatus sut;
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment