A C E F G J L N P R S T

A

addTearDown(TearDown) - Method in class com.google.common.testing.junit3.TearDownTestCase
Registers a TearDown implementor which will be run during TearDownTestCase.tearDown()
addTearDown(TearDown) - Method in class com.google.common.testing.junit4.TearDownMethodRule
Registers a TearDown implementor which will be run after the test execution.
addTearDown(TearDown) - Method in class com.google.common.testing.junit4.TearDownTestCase
Registers a TearDown implementor which will be run after the test execution.
addTearDown(TearDown) - Method in interface com.google.common.testing.TearDownAccepter
Registers a TearDown implementor which will be run after the test proper.
addTearDown(TearDown) - Method in class com.google.common.testing.TearDownStack
 
apply(Statement, FrameworkMethod, Object) - Method in class com.google.common.testing.junit4.TearDownMethodRule
Don't call this method directly -- it fullfils the MethodRule interface.
assertContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Asserts that expectedRegex matches any substring of actual and fails with message if it does not.
assertContainsRegex(String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Variant of assertContainsRegex(String,String,String) using a generic message.
assertContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Asserts that expectedRegex matches any substring of actual and fails with message if it does not.
assertContainsRegex(String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Variant of JUnitAsserts.assertContainsRegex(String,String,String) using a generic message.
assertContentsInOrder(String, Iterable<?>, Object...) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Asserts that actual contains precisely the elements expected, and in the same order.
assertContentsInOrder(Iterable<?>, Object...) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Variant of assertContentsInOrder(String,Iterable,Object...) using a generic message.
assertContentsInOrder(String, Iterable<?>, Object...) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Asserts that actual contains precisely the elements expected, and in the same order.
assertContentsInOrder(Iterable<?>, Object...) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Variant of JUnitAsserts.assertContentsInOrder(String,Iterable,Object...) using a generic message.
assertMatchesRegex(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Asserts that expectedRegex exactly matches actual and fails with message if it does not.
assertMatchesRegex(String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Variant of assertMatchesRegex(String,String,String) using a generic message.
assertMatchesRegex(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Asserts that expectedRegex exactly matches actual and fails with message if it does not.
assertMatchesRegex(String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Variant of JUnitAsserts.assertMatchesRegex(String,String,String) using a generic message.
assertNotContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Asserts that unexpectedRegex does not match any substring of actual, and fails with message if it does.
assertNotContainsRegex(String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Variant of assertNotContainsRegex(String,String,String) using a generic message.
assertNotContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Asserts that unexpectedRegex does not match any substring of actual, and fails with message if it does.
assertNotContainsRegex(String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Variant of JUnitAsserts.assertNotContainsRegex(String,String,String) using a generic message.
assertNotEqual(String, Object, Object) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Asserts that actual is not equal unexpected, according to both == and Object.equals(java.lang.Object).
assertNotEqual(Object, Object) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Variant of assertNotEqual(String,Object,Object) using a generic message.
assertNotEqual(String, Object, Object) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Asserts that actual is not equal unexpected, according to both == and Object.equals(java.lang.Object).
assertNotEqual(Object, Object) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Variant of JUnitAsserts.assertNotEqual(String,Object,Object) using a generic message.
assertNotMatchesRegex(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Asserts that unexpectedRegex does not exactly match actual, and fails with message if it does.
assertNotMatchesRegex(String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Variant of assertNotMatchesRegex(String,String,String) using a generic message.
assertNotMatchesRegex(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Asserts that unexpectedRegex does not exactly match actual, and fails with message if it does.
assertNotMatchesRegex(String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Variant of JUnitAsserts.assertNotMatchesRegex(String,String,String) using a generic message.

C

clear() - Method in class com.google.common.testing.TestLogHandler
 
close() - Method in class com.google.common.testing.TestLogHandler
 
ClusterException - Exception in com.google.common.testing
An ClusterException is data structure that allows for some code to "throw multiple exceptions", or something close to it.
ClusterException(Collection<? extends Throwable>) - Constructor for exception com.google.common.testing.ClusterException
 
com.google.common.testing - package com.google.common.testing
 
com.google.common.testing.junit3 - package com.google.common.testing.junit3
 
com.google.common.testing.junit4 - package com.google.common.testing.junit4
 
create(Throwable...) - Static method in exception com.google.common.testing.ClusterException
 
create(Collection<? extends Throwable>) - Static method in exception com.google.common.testing.ClusterException
Given a collection of exceptions, returns a RuntimeException, with the following rules: If exceptions has a single exception and that exception is a RuntimeException, return it If exceptions has a single exceptions and that exceptions is not a RuntimeException, return a simple RuntimeException that wraps it Otherwise, return an instance of ClusterException that wraps the first exception in the exceptions collection.

E

equal(Object, Object) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
equal(Object, Object) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
exceptions - Variable in exception com.google.common.testing.ClusterException
 

F

failContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
failContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
failEqual(String, Object) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
failEqual(String, Object) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
failMatch(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
failMatch(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
failNotContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
failNotContainsRegex(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
failNotMatches(String, String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
failNotMatches(String, String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
failWithMessage(String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
failWithMessage(String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
flush() - Method in class com.google.common.testing.TestLogHandler
 

G

getMatcher(String, String) - Static method in class com.google.common.testing.junit3.JUnitAsserts
 
getMatcher(String, String) - Static method in class com.google.common.testing.junit4.JUnitAsserts
 
getStoredLogRecords() - Method in class com.google.common.testing.TestLogHandler
Fetch the list of logged records

J

JUnitAsserts - Class in com.google.common.testing.junit3
Contains additional assertion methods not found in JUnit.
JUnitAsserts() - Constructor for class com.google.common.testing.junit3.JUnitAsserts
 
JUnitAsserts - Class in com.google.common.testing.junit4
Contains additional assertion methods not found in JUnit.
JUnitAsserts() - Constructor for class com.google.common.testing.junit4.JUnitAsserts
 

L

list - Variable in class com.google.common.testing.TestLogHandler
We will keep a private list of all logged records
logger - Static variable in class com.google.common.testing.SloppyTearDown
 
logger - Static variable in class com.google.common.testing.TearDownStack
 

N

newArrayList(Iterable<? extends E>) - Static method in class com.google.common.testing.junit3.JUnitAsserts
Copied from Google collections to avoid (for now) depending on it (until we really need it).
newArrayList(Iterable<? extends E>) - Static method in class com.google.common.testing.junit4.JUnitAsserts
Copied from Google collections to avoid (for now) depending on it (until we really need it).

P

publish(LogRecord) - Method in class com.google.common.testing.TestLogHandler
Adds the most recently logged record to our list.

R

runBare() - Method in class com.google.common.testing.junit3.TearDownTestCase
 
runTearDown() - Method in class com.google.common.testing.TearDownStack
Causes teardown to execute.

S

setUp() - Method in class com.google.common.testing.junit3.TearDownTestCase
 
SloppyTearDown - Class in com.google.common.testing
Simple utility for when you want to create a TearDown that may throw an exception but should not fail a test when it does.
SloppyTearDown() - Constructor for class com.google.common.testing.SloppyTearDown
 
sloppyTearDown() - Method in class com.google.common.testing.SloppyTearDown
 
stack - Variable in class com.google.common.testing.junit3.TearDownTestCase
 
stack - Variable in class com.google.common.testing.junit4.TearDownMethodRule
 
stack - Variable in class com.google.common.testing.TearDownStack
 
storedLogRecords - Variable in class com.google.common.testing.TestLogHandler
And also the same list in an unmodifiable view (for the getter)
suppressThrows - Variable in class com.google.common.testing.TearDownStack
 

T

tearDown() - Method in class com.google.common.testing.junit3.TearDownTestCase
 
tearDown() - Method in class com.google.common.testing.SloppyTearDown
 
TearDown - Interface in com.google.common.testing
An object that can perform a TearDown.tearDown() operation.
tearDown() - Method in interface com.google.common.testing.TearDown
Performs a single tear-down operation.
TearDownAccepter - Interface in com.google.common.testing
Any object which can accept registrations of TearDown instances.
TearDownMethodRule - Class in com.google.common.testing.junit4
See TearDownTestCase.
TearDownMethodRule() - Constructor for class com.google.common.testing.junit4.TearDownMethodRule
 
tearDownRule - Variable in class com.google.common.testing.junit4.TearDownTestCase
 
TearDownStack - Class in com.google.common.testing
A TearDownStack contains a stack of TearDown instances.
TearDownStack() - Constructor for class com.google.common.testing.TearDownStack
 
TearDownStack(boolean) - Constructor for class com.google.common.testing.TearDownStack
 
TearDownTestCase - Class in com.google.common.testing.junit3
A base class for test cases that require reliable tear-down.
TearDownTestCase() - Constructor for class com.google.common.testing.junit3.TearDownTestCase
Creates a TearDownTestCase with the default (empty) name.
TearDownTestCase(String) - Constructor for class com.google.common.testing.junit3.TearDownTestCase
Creates a TearDownTestCase with the specified name.
TearDownTestCase - Class in com.google.common.testing.junit4
A base class for test cases that want to be able to register "tear-down" operations programatically -- i.e.
TearDownTestCase() - Constructor for class com.google.common.testing.junit4.TearDownTestCase
 
TestLogHandler - Class in com.google.common.testing
Tests may use this to intercept messages that are logged by the code under test.
TestLogHandler() - Constructor for class com.google.common.testing.TestLogHandler
 

A C E F G J L N P R S T

Copyright © 2010 Google. All Rights Reserved.