Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Impact updates from fcrepo refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Woods committed Sep 25, 2014
1 parent 2b0d296 commit 9ec66a7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 39 deletions.
8 changes: 0 additions & 8 deletions fcrepo-message-consumer-core/pom.xml
Expand Up @@ -75,14 +75,6 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
Expand Down
Expand Up @@ -27,12 +27,7 @@
import org.fcrepo.kernel.utils.EventType;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;

import javax.jms.JMSException;
import javax.jms.Message;
Expand All @@ -59,15 +54,13 @@
/**
* @author Michael Durbin
*/
@RunWith(PowerMockRunner.class)
@PowerMockIgnore({"javax.net.ssl.*", "org.slf4j.*", "javax.xml.parsers.*", "org.apache.xerces.*"})
@PrepareForTest({DefaultHttpClient.class})
public class IndexerGroupTest {

private IndexerGroup indexerGroup;

private String repoUrl = "http://example.org:80";

@Mock
private DefaultHttpClient httpClient;

private Set<Indexer<Object>> indexers;
Expand All @@ -78,7 +71,6 @@ public class IndexerGroupTest {
@Before
public void setUp() {
initMocks(this);
httpClient = PowerMockito.mock(DefaultHttpClient.class);

indexers = new HashSet<>();
indexers.add(indexer);
Expand Down
Expand Up @@ -37,7 +37,6 @@
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.StringEntity;
import org.apache.jena.riot.WebContent;
Expand Down Expand Up @@ -159,7 +158,7 @@ public void testOneResourceCustomMapping() throws ClientProtocolException, IOExc

LOGGER.debug("Creating index mapping at URL: {}...", mappingUrl);

final HttpPost indexCreateRequest = new HttpPost(mappingUrl);
final HttpPut indexCreateRequest = new HttpPut(mappingUrl);
final HttpEntity indexMapping =
new StringEntity(Files.toString(new File(
"target/test-classes/ldpath/dublin_core.ldpath"),
Expand Down
5 changes: 5 additions & 0 deletions fcrepo-message-consumer-elasticsearch/pom.xml
Expand Up @@ -57,6 +57,11 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
20 changes: 0 additions & 20 deletions pom.xml
Expand Up @@ -121,28 +121,8 @@
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<exclusions>
<exclusion>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<version>${powermock.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
Expand Down

0 comments on commit 9ec66a7

Please sign in to comment.