Skip to content

Commit

Permalink
Build test jars and cleanup some missing method overrides (#2280)
Browse files Browse the repository at this point in the history
Co-authored-by: MiguelRicardos <[email protected]>
  • Loading branch information
alerman and MiguelRicardos authored Mar 19, 2024
1 parent cdfbcc2 commit 94afef9
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 0 deletions.
7 changes: 7 additions & 0 deletions warehouse/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public boolean isFullMajorCompaction() {
throw new UnsupportedOperationException();
}

@Override
public boolean isUserCompaction() {
throw new UnsupportedOperationException();
}

@Override
public void registerSideChannel(SortedKeyValueIterator<Key,Value> iter) {
throw new UnsupportedOperationException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,11 @@ public IteratorUtil.IteratorScope getIteratorScope() {
return null;
}

@Override
public boolean isUserCompaction() {
return false;
}

@Override
public boolean isFullMajorCompaction() {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,22 @@ private Uid.List.Builder createValueWithRemoveUid(String uid) {
public static class MockIteratorEnvironment implements IteratorEnvironment {
AccumuloConfiguration conf;
private final boolean major;
private final boolean isUser;

public MockIteratorEnvironment(AccumuloConfiguration conf) {
this.conf = conf;
this.isUser = false;
this.major = false;
}

public MockIteratorEnvironment(boolean major) {
this(major, false);
}

public MockIteratorEnvironment(boolean major, boolean isUser) {
this.conf = DefaultConfiguration.getInstance();
this.major = major;
this.isUser = isUser;
}

@Override
Expand All @@ -106,6 +118,11 @@ public boolean isFullMajorCompaction() {
return major;
}

@Override
public boolean isUserCompaction() {
return isUser;
}

@Override
public void registerSideChannel(SortedKeyValueIterator<Key,Value> iter) {
throw new UnsupportedOperationException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,21 @@ public IteratorScope getIteratorScope() {
return IteratorScope.scan;
}

@Override
public boolean isFullMajorCompaction() {
throw new UnsupportedOperationException();
}

@Override
public boolean isUserCompaction() {
return false;
}

@Override
public Authorizations getAuthorizations() {
throw new UnsupportedOperationException();
}

@Override
public IteratorEnvironment cloneWithSamplingEnabled() {
throw new SampleNotPresentException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ public boolean isFullMajorCompaction() {
throw new UnsupportedOperationException();
}

@Override
public boolean isUserCompaction() {
return false;
}

@Override
public Authorizations getAuthorizations() {
throw new UnsupportedOperationException();
Expand Down
8 changes: 8 additions & 0 deletions web-services/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@
<version>2.3.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-core</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>gov.nsa.datawave.microservice</groupId>
<artifactId>base-rest-responses</artifactId>
Expand Down
14 changes: 14 additions & 0 deletions web-services/query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,20 @@
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-core</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<type>test-jar</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-in-memory-accumulo</artifactId>
Expand Down

0 comments on commit 94afef9

Please sign in to comment.