forked from google/truth
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127901946
- Loading branch information
Showing
23 changed files
with
27 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,16 @@ | |
package com.google.common.truth; | ||
|
||
import com.google.common.primitives.Booleans; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* A Subject to handle testing propositions for {@code boolean[]}. | ||
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveBooleanArraySubject | ||
public final class PrimitiveBooleanArraySubject | ||
extends AbstractArraySubject<PrimitiveBooleanArraySubject, boolean[]> { | ||
PrimitiveBooleanArraySubject(FailureStrategy failureStrategy, @Nullable boolean[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,16 @@ | |
package com.google.common.truth; | ||
|
||
import com.google.common.primitives.Chars; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* A Subject to handle testing propositions for {@code char[]}. | ||
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveCharArraySubject | ||
public final class PrimitiveCharArraySubject | ||
extends AbstractArraySubject<PrimitiveCharArraySubject, char[]> { | ||
PrimitiveCharArraySubject(FailureStrategy failureStrategy, @Nullable char[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
|
||
import com.google.common.collect.Iterables; | ||
import com.google.common.primitives.Doubles; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
|
@@ -38,7 +36,7 @@ | |
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveDoubleArraySubject | ||
public final class PrimitiveDoubleArraySubject | ||
extends AbstractArraySubject<PrimitiveDoubleArraySubject, double[]> { | ||
PrimitiveDoubleArraySubject(FailureStrategy failureStrategy, @Nullable double[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,8 @@ | |
|
||
import com.google.common.collect.Iterables; | ||
import com.google.common.primitives.Floats; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
|
@@ -38,7 +36,7 @@ | |
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveFloatArraySubject | ||
public final class PrimitiveFloatArraySubject | ||
extends AbstractArraySubject<PrimitiveFloatArraySubject, float[]> { | ||
PrimitiveFloatArraySubject(FailureStrategy failureStrategy, @Nullable float[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,16 @@ | |
package com.google.common.truth; | ||
|
||
import com.google.common.primitives.Ints; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* A Subject to handle testing propositions for {@code int[]}. | ||
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveIntArraySubject | ||
public final class PrimitiveIntArraySubject | ||
extends AbstractArraySubject<PrimitiveIntArraySubject, int[]> { | ||
PrimitiveIntArraySubject(FailureStrategy failureStrategy, @Nullable int[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,16 @@ | |
package com.google.common.truth; | ||
|
||
import com.google.common.primitives.Longs; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* A Subject to handle testing propositions for {@code long[]}. | ||
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveLongArraySubject | ||
public final class PrimitiveLongArraySubject | ||
extends AbstractArraySubject<PrimitiveLongArraySubject, long[]> { | ||
PrimitiveLongArraySubject(FailureStrategy failureStrategy, @Nullable long[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,18 +16,16 @@ | |
package com.google.common.truth; | ||
|
||
import com.google.common.primitives.Shorts; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* A Subject to handle testing propositions for {@code short[]}. | ||
* | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
public class PrimitiveShortArraySubject | ||
public final class PrimitiveShortArraySubject | ||
extends AbstractArraySubject<PrimitiveShortArraySubject, short[]> { | ||
PrimitiveShortArraySubject(FailureStrategy failureStrategy, @Nullable short[] o) { | ||
super(failureStrategy, o); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
package com.google.common.truth; | ||
|
||
import com.google.common.annotations.GwtIncompatible; | ||
|
||
import java.lang.reflect.ParameterizedType; | ||
import java.lang.reflect.Type; | ||
|
||
|
@@ -26,7 +25,7 @@ | |
* @author Christian Gruber ([email protected]) | ||
*/ | ||
@GwtIncompatible("java.lang.reflect.*") | ||
public final class ReflectionUtil { | ||
final class ReflectionUtil { | ||
private ReflectionUtil() {} | ||
|
||
/** Returns the captured type. */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,7 @@ | |
import static com.google.common.base.Preconditions.checkNotNull; | ||
|
||
import com.google.common.annotations.GwtIncompatible; | ||
|
||
import java.util.regex.Pattern; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
/** | ||
|
@@ -30,7 +28,9 @@ | |
* @author David Saff | ||
* @author Christian Gruber ([email protected]) | ||
*/ | ||
// TODO(kak): Make this final | ||
public class StringSubject extends ComparableSubject<StringSubject, String> { | ||
// TODO(kak): Make this package-private | ||
public StringSubject(FailureStrategy failureStrategy, @Nullable String string) { | ||
super(failureStrategy, string); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.