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

Commit

Permalink
#18 -- proctor now builds and passes unit tests with guava 21 and java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Humphrey committed Jan 22, 2017
1 parent e8b89aa commit 119b3d3
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 19 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>oss-parent</artifactId>
<version>17</version>
<version>18-SNAPSHOT</version>
</parent>

<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<licenses>
Expand Down
2 changes: 1 addition & 1 deletion proctor-ant-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-ant-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-builder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-builder</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-codegen-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-codegen-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-codegen</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ public boolean apply(TestChooser<?> input) {
assert null != input;
return type == input.getTestDefinition().getTestType();
}

@Override
public boolean test(TestChooser<?> input) {
return apply(input);
}
});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.indeed.proctor.common.model;

import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Maps;
import com.fasterxml.jackson.core.JsonGenerator;
Expand Down Expand Up @@ -31,7 +31,7 @@ private TestType(@Nonnull final String id) {
@Nonnull
public static TestType register(@Nonnull final String name) {
final TestType testType = new TestType(name);
return Objects.firstNonNull(TYPES.putIfAbsent(testType.name(), testType), testType);
return MoreObjects.firstNonNull(TYPES.putIfAbsent(testType.name(), testType), testType);
}

// Emulate enum
Expand Down
2 changes: 1 addition & 1 deletion proctor-consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-consumer</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.indeed.proctor.consumer;

import com.google.common.base.Objects;
import com.google.common.base.MoreObjects;
import com.google.common.collect.Maps;
import com.indeed.proctor.common.ProctorResult;
import com.indeed.proctor.common.model.ConsumableTestDefinition;
Expand Down Expand Up @@ -114,7 +114,7 @@ protected Payload getPayload(final String testName, @Nonnull final Bucket<?> fal
}
}

return Objects.firstNonNull(payload, Payload.EMPTY_PAYLOAD);
return MoreObjects.firstNonNull(payload, Payload.EMPTY_PAYLOAD);
}


Expand Down
4 changes: 2 additions & 2 deletions proctor-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-maven-plugin</artifactId>
Expand Down Expand Up @@ -49,7 +49,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.2</version>
<version>3.3</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion proctor-store-git/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-store-git</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-store-svn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-store-svn</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-store</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ private static List<Revision> filterRevisionByTest(final List<RevisionAndTest> r
public boolean apply(@Nullable final RevisionAndTest revisionAndTest) {
return revisionAndTest.getTestName().equals(test);
}

@Override
public boolean test(@Nullable final RevisionAndTest revisionAndTest) {
return apply(revisionAndTest);
}
})
.transform(castToRevision)
.toList();
Expand Down
2 changes: 1 addition & 1 deletion proctor-tomcat-deps-provided/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-tomcat-deps-provided</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion proctor-tomcat-deps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.indeed</groupId>
<artifactId>proctor-parent</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>

<artifactId>proctor-tomcat-deps</artifactId>
Expand Down

0 comments on commit 119b3d3

Please sign in to comment.