- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
+ public abstract T when(T)
- public static IMockBuilder
Description:
Create a mock builder allowing to create a partial mock for the given class or interface.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing thenCallRealMethod()
- public static IMockBuilder
Description:
Create a mock builder allowing to create a partial mock for the given class or interface.
+ public OngoingStubbing
Description:
Sets the real implementation to be called when the method is called on a mock object. As usual you are going to read the partial mock warning: Object oriented programming is more less tackling complexity by dividing the complexity into separate, specific, SRPy objects. How does partial mock fit into this paradigm? Well, it just doesn't... Partial mock usually means that the complexity has been moved to a different method on the same object. In most cases, this is not the way you want to design your application. However, there are rare cases when partial mocks come handy: dealing with code you cannot change easily (3rd party interfaces, interim refactoring of legacy code etc.) However, I wouldn't use partial mocks for new, test-driven & well-designed code.
// someMethod() must be safe (e.g. doesn't throw, doesn't have dependencies to the object state, etc.)
// if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
when(mock.someMethod()).thenCallRealMethod();
// calls real method:
mock.someMethod();
See also javadoc Mockito.spy(Object) to find out more about partial mocks. Mockito.spy() is a recommended way of creating partial mocks. The reason is it guarantees real methods are called against correctly constructed object because you're responsible for constructing the object passed to spy() method. See examples in javadoc for Mockito.when(T)
Return Parameters:
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
- public abstract org.easymock.classextension.IMockBuilder addMockedMethod(java.lang.reflect.Method)
- public abstract T createStrictMock()
+ public static org.mockito.stubbing.Stubber doCallRealMethod()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IMockBuilder
Description:
Create a mock builder allowing to create a partial mock for the given class or interface.
- public IMockBuilder
Description:
Adds a method to be mocked in the testing class. Each call will add a new method to the result mock. The method is searched for in the class itself as well as superclasses.
Parameters:
- public T createStrictMock()
Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.
Return Parameters:
+ public Stubber doCallRealMethod()
Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
- public abstract T createStrictMock()
+ public abstract T when(T)
- public static IMockBuilder
Description:
Create a mock builder allowing to create a partial mock for the given class or interface.
- public T createStrictMock()
Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
- public abstract T createStrictMock()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenCallRealMethod()
+ public abstract org.mockito.stubbing.OngoingStubbing thenAnswer(org.mockito.stubbing.Answer>)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IMockBuilder
Description:
Create a mock builder allowing to create a partial mock for the given class or interface.
- public T createStrictMock()
Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets the real implementation to be called when the method is called on a mock object. As usual you are going to read the partial mock warning: Object oriented programming is more less tackling complexity by dividing the complexity into separate, specific, SRPy objects. How does partial mock fit into this paradigm? Well, it just doesn't... Partial mock usually means that the complexity has been moved to a different method on the same object. In most cases, this is not the way you want to design your application. However, there are rare cases when partial mocks come handy: dealing with code you cannot change easily (3rd party interfaces, interim refactoring of legacy code etc.) However, I wouldn't use partial mocks for new, test-driven & well-designed code.
// someMethod() must be safe (e.g. doesn't throw, doesn't have dependencies to the object state, etc.)
// if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
when(mock.someMethod()).thenCallRealMethod();
// calls real method:
mock.someMethod();
See also javadoc Mockito.spy(Object) to find out more about partial mocks. Mockito.spy() is a recommended way of creating partial mocks. The reason is it guarantees real methods are called against correctly constructed object because you're responsible for constructing the object passed to spy() method. See examples in javadoc for Mockito.when(T)
Return Parameters:
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. E.g:
when(mock.someMethod(10)).thenAnswer(new Answer<Integer>() {
public Integer answer(InvocationOnMock invocation) throws Throwable {
return (Integer) invocation.getArguments()[0];
}
}
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
- public abstract T createStrictMock()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenCallRealMethod()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IMockBuilder
Description:
Create a mock builder allowing to create a partial mock for the given class or interface.
- public T createStrictMock()
Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets the real implementation to be called when the method is called on a mock object. As usual you are going to read the partial mock warning: Object oriented programming is more less tackling complexity by dividing the complexity into separate, specific, SRPy objects. How does partial mock fit into this paradigm? Well, it just doesn't... Partial mock usually means that the complexity has been moved to a different method on the same object. In most cases, this is not the way you want to design your application. However, there are rare cases when partial mocks come handy: dealing with code you cannot change easily (3rd party interfaces, interim refactoring of legacy code etc.) However, I wouldn't use partial mocks for new, test-driven & well-designed code.
// someMethod() must be safe (e.g. doesn't throw, doesn't have dependencies to the object state, etc.)
// if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
when(mock.someMethod()).thenCallRealMethod();
// calls real method:
mock.someMethod();
See also javadoc Mockito.spy(Object) to find out more about partial mocks. Mockito.spy() is a recommended way of creating partial mocks. The reason is it guarantees real methods are called against correctly constructed object because you're responsible for constructing the object passed to spy() method. See examples in javadoc for Mockito.when(T)
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static void initMocks(Object testClass)
Description:
Initializes objects annotated with Mockito annotations for given testClass: @ Mock, @ Spy, @ Captor, @ InjectMocks See examples in javadoc for MockitoAnnotations class.
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract T when(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract T when(T)
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public abstract org.easymock.classextension.IMockBuilder addMockedMethod(java.lang.reflect.Method)
+ public abstract T when(T)
- public IMockBuilder
Description:
Adds a method to be mocked in the testing class. Each call will add a new method to the result mock. The method is searched for in the class itself as well as superclasses.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.classextension.IMockBuilder addMockedMethod(java.lang.reflect.Method)
+ public static org.mockito.stubbing.Stubber doCallRealMethod()
- public IMockBuilder
Description:
Adds a method to be mocked in the testing class. Each call will add a new method to the result mock. The method is searched for in the class itself as well as superclasses.
Parameters:
+ public Stubber doCallRealMethod()
Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()
Return Parameters:
- public abstract org.easymock.classextension.IMockBuilder addMockedMethod(java.lang.reflect.Method)
+ public static org.mockito.stubbing.Stubber doCallRealMethod()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IMockBuilder
Description:
Adds a method to be mocked in the testing class. Each call will add a new method to the result mock. The method is searched for in the class itself as well as superclasses.
Parameters:
+ public Stubber doCallRealMethod()
Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T given(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static org.mockito.ArgumentCaptor forClass(java.lang.Class)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static ArgumentCaptor
Description:
Build a new ArgumentCaptor. Note that an ArgumentCaptor *don't do any type checks*, it is only there to avoid casting in your code. This might however change (type checks could be added) in a future major release.
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract void replay()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters anyTimes()
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenAnswer(org.mockito.stubbing.Answer>)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. E.g:
when(mock.someMethod(10)).thenAnswer(new Answer<Integer>() {
public Integer answer(InvocationOnMock invocation) throws Throwable {
return (Integer) invocation.getArguments()[0];
}
}
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public static T verify(T, org.mockito.verification.VerificationMode)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T verify(T var1, VerificationMode var2)
Description:
Verifies interaction in order. E.g:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock, times(2)).someMethod("was called first two times");
inOrder.verify(secondMock, atLeastOnce()).someMethod("was called second at least once");
See examples in javadoc for Mockito class
Parameters:
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.BDDMockito$BDDStubber willThrow(java.lang.Throwable...)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public static BDDStubber willThrow(Throwable toBeThrown)
Description:
See original Stubber.doThrow(Throwable)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable...)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public java.util.ListIterator iterator(int)
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract org.easymock.IExpectationSetters once()
+ public org.mockito.asm.ByteVector putInt(int)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public abstract org.easymock.IExpectationSetters once()
- public boolean get(int)
+ public boolean get(int)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public org.mockito.asm.ByteVector putInt(int)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T answer() throws java.lang.Throwable
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public T answer() throws Throwable
Description:
is called by EasyMock to answer an expected call. The answer may be to return a value, or to throw an exception. The arguments of the call for which the answer is generated are available via EasyMock.getCurrentArguments() - be careful here, using the arguments is not refactoring-safe.
Return Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public abstract T createMock(java.lang.String, org.easymock.classextension.IMocksControl)
+ public T mock(java.lang.Class, org.mockito.MockSettings)
- public T createMock(String var1, IMocksControl var2)
Description:
Create named mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createMock(org.easymock.classextension.IMocksControl)
+ public static T mock(java.lang.Class)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createMock(org.easymock.classextension.IMocksControl)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.classextension.IMocksControl)
- public abstract T createNiceMock(java.lang.String)
+ public static T mock(java.lang.Class)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createMock(org.easymock.classextension.IMocksControl)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.classextension.IMocksControl)
- public static void verify(java.lang.Object...)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public static T verify(T)
+ public static org.mockito.stubbing.OngoingStubbing when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public void verify()
Description:
Deprecated.
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T mock(java.lang.Class)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expect(T)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract T when(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
- public static org.easymock.IExpectationSetters expect(T)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.IMocksControl)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.MockType)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createMock(org.easymock.MockType)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.MockType)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createMock(org.easymock.MockType)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract T createMock(org.easymock.MockType)
- public static T createMock(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createNiceMock(java.lang.String)
+ public static T mock(java.lang.Class)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createNiceMock(java.lang.String)
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T mock(java.lang.Class)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createNiceMock(java.lang.String)
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T spy(T)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T spy(T object)
Description:
Creates a spy of the real object. The spy calls real methods unless they are stubbed. Real spies should be used carefully and occasionally, for example when dealing with legacy code. As usual you are going to read the partial mock warning: Object oriented programming is more less tackling complexity by dividing the complexity into separate, specific, SRPy objects. How does partial mock fit into this paradigm? Well, it just doesn't... Partial mock usually means that the complexity has been moved to a different method on the same object. In most cases, this is not the way you want to design your application. However, there are rare cases when partial mocks come handy: dealing with code you cannot change easily (3rd party interfaces, interim refactoring of legacy code etc.) However, I wouldn't use partial mocks for new, test-driven & well-designed code. Example:
List list = new LinkedList();
List spy = spy(list);
//optionally, you can stub out some methods:
when(spy.size()).thenReturn(100);
//using the spy calls real methods
spy.add("one");
spy.add("two");
//prints "one" - the first element of a list
System.out.println(spy.get(0));
//size() method was stubbed - 100 is printed
System.out.println(spy.size());
//optionally, you can verify
verify(spy).add("one");
verify(spy).add("two");
Important gotcha on spying real objects! Sometimes it's impossible or impractical to use when(Object) for stubbing spies. Therefore for spies it is recommended to always use doReturn|Answer|Throw()|CallRealMethod family of methods for stubbing. Example:
List list = new LinkedList();
List spy = spy(list);
//Impossible: real method is called so spy.get(0) throws IndexOutOfBoundsException (the list is yet empty)
when(spy.get(0)).thenReturn("foo");
//You have to use doReturn() for stubbing
doReturn("foo").when(spy).get(0);
Mockito *does not* delegate calls to the passed real instance, instead it actually creates a copy of it. So if you keep the real instance and interact with it, don't expect the spied to be aware of those interaction and their effect on real instance state. The corollary is that when an *unstubbed* method is called *on the spy* but *not on the real instance*, you won't see any effects on the real instance. Watch out for final methods. Mockito doesn't mock final methods so the bottom line is: when you spy on real objects + you try to stub a final method = trouble. Also you won't be able to verify those method as well. See examples in javadoc for Mockito class
Parameters:
- public abstract T createNiceMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createNiceMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createNiceMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract void andStubReturn(T)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createNiceMock(java.lang.String)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createNiceMock(String var1)
Description:
Create a named nice mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createStrictMock()
+ public abstract T when(T)
- public T createStrictMock()
Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract T createStrictMock()
+ public static org.mockito.stubbing.Stubber doCallRealMethod()
- public T createStrictMock()
Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.
Return Parameters:
+ public Stubber doCallRealMethod()
Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()
Return Parameters:
- public abstract T createStrictMock(java.lang.String)
+ public abstract T given(T)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
- public abstract T createStrictMock(java.lang.String)
+ public abstract T when(T)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract T createStrictMock(java.lang.String)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenCallRealMethod()
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets the real implementation to be called when the method is called on a mock object. As usual you are going to read the partial mock warning: Object oriented programming is more less tackling complexity by dividing the complexity into separate, specific, SRPy objects. How does partial mock fit into this paradigm? Well, it just doesn't... Partial mock usually means that the complexity has been moved to a different method on the same object. In most cases, this is not the way you want to design your application. However, there are rare cases when partial mocks come handy: dealing with code you cannot change easily (3rd party interfaces, interim refactoring of legacy code etc.) However, I wouldn't use partial mocks for new, test-driven & well-designed code.
// someMethod() must be safe (e.g. doesn't throw, doesn't have dependencies to the object state, etc.)
// if it isn't safe then you will have trouble stubbing it using this api. Use Mockito.doCallRealMethod() instead.
when(mock.someMethod()).thenCallRealMethod();
// calls real method:
mock.someMethod();
See also javadoc Mockito.spy(Object) to find out more about partial mocks. Mockito.spy() is a recommended way of creating partial mocks. The reason is it guarantees real methods are called against correctly constructed object because you're responsible for constructing the object passed to spy() method. See examples in javadoc for Mockito.when(T)
Return Parameters:
- public abstract T createStrictMock(java.lang.String)
+ public static T mock(java.lang.Class)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.Capture newCapture()
+ public static T mock(java.lang.Class)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.Capture newCapture()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public static T mock(java.lang.Class)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
+ public void start()
+ public abstract void addListener(org.mockito.listeners.MockitoListener)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public static T mock(java.lang.Class)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willAnswer(org.mockito.stubbing.Answer>)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willAnswer(Answer answer)
Description:
See original Stubber.doAnswer(Answer)
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object, java.lang.Object...)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public BDDMyOngoingStubbing
Description:
See original OngoingStubbing.thenReturn(Object, Object[])
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expectLastCall()
- public static void replay(java.lang.Object...)
- public static void verify(java.lang.Object...)
- public static void reset(java.lang.Object...)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
+ public abstract void shouldHaveNoMoreInteractions()
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public void replay()
Description:
Deprecated.
- public void verify()
Description:
Deprecated.
- public final void reset()
Description:
Deprecated.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public abstract T createStrictMock(java.lang.String)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract T createStrictMock(java.lang.String)
- public static void replay(java.lang.Object...)
- public static void verify(java.lang.Object...)
- public static void reset(java.lang.Object...)
+ public abstract void shouldHaveNoMoreInteractions()
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public void replay()
Description:
Deprecated.
- public void verify()
Description:
Deprecated.
- public final void reset()
Description:
Deprecated.
- public abstract void andStubReturn(T)
+ public abstract T when(T)
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract void andStubReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public abstract void replay()
+ public abstract T when(T)
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract void replay()
+ public abstract org.mockito.stubbing.Stubber doNothing()
- public void replay()
Description:
Deprecated.
+ public Stubber doNothing()
Description:
Use it for stubbing consecutive calls in Mockito.doNothing() style:
doNothing().
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doNothing()
Return Parameters:
- public abstract void replay()
+ public abstract org.mockito.stubbing.Stubber doNothing()
+ public abstract T when(T)
- public void replay()
Description:
Deprecated.
+ public Stubber doNothing()
Description:
Use it for stubbing consecutive calls in Mockito.doNothing() style:
doNothing().
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doNothing()
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public abstract void reset()
+ public abstract T verify(T)
- public final void reset()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public abstract void verify()
+ public abstract T verify(T)
- public void verify()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public abstract void verify()
- public abstract void reset()
+ public abstract T verify(T)
- public void verify()
Description:
Deprecated.
- public final void reset()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public boolean get(int)
+ public abstract T when(T)
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public boolean get(int)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public boolean get(int)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public boolean get(int)
+ public boolean get(int)
- public int getValue()
+ public V getValue()
- public T getValue()
Description:
Return the captured value
Return Parameters:
+ public T getValue()
Description:
Returns the captured value of the argument. If the method was called multiple times then it returns the latest captured value See examples in javadoc for ArgumentCaptor class.
Return Parameters:
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public java.lang.Object put(java.lang.Object, java.lang.Object)
- public org.easymock.IMocksControl createControl()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IMocksControl createControl()
Description:
Creates a control, order checking is disabled by default.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public org.easymock.IMocksControl createControl()
+ public static T mock(java.lang.Class)
- public static IMocksControl createControl()
Description:
Creates a control, order checking is disabled by default.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public org.easymock.IMocksControl createControl()
- public abstract T createMock(org.easymock.classextension.IMocksControl)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IMocksControl createControl()
Description:
Creates a control, order checking is disabled by default.
Return Parameters:
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.Capture newCapture()
+ public abstract T given(T)
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
- public static org.easymock.Capture newCapture()
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
- public static org.easymock.Capture newCapture()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public static org.easymock.Capture newCapture()
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public static void replay(java.lang.Object...)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
- public T createStrictMock(String var1)
Description:
Create a named strict mock from this builder. The same builder can be called to create multiple mocks.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
- public static org.easymock.Capture newCapture()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
- public static org.easymock.Capture newCapture()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public static void replay(java.lang.Object...)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract T verify(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract T when(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object, java.lang.Object...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public BDDMyOngoingStubbing
Description:
See original OngoingStubbing.thenReturn(Object, Object[])
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
+ public static org.mockito.stubbing.OngoingStubbing when(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
+ public static void verifyNoMoreInteractions(java.lang.Object...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public void verifyNoMoreInteractions()
Description:
Verifies that no more interactions happened in order. Different from Mockito.verifyNoMoreInteractions(Object...) because the order of verification matters. Example:
mock.foo(); //1st
mock.bar(); //2nd
mock.baz(); //3rd
InOrder inOrder = inOrder(mock);
inOrder.verify(mock).bar(); //2n
inOrder.verify(mock).baz(); //3rd (last method)
//passes because there are no more interactions after last method:
inOrder.verifyNoMoreInteractions();
//however this fails because 1st method was not verified:
Mockito.verifyNoMoreInteractions(mock);
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.BDDMockito$BDDStubber willAnswer(org.mockito.stubbing.Answer>)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public static BDDStubber willAnswer(Answer answer)
Description:
See original Stubber.doAnswer(Answer)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract T createMock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract T createMock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public static T mock(java.lang.Class)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
- public boolean get(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters times(int)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters times(int)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters times(int)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
- public boolean get(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters times(int)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDMyOngoingStubbing willReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public BDDMyOngoingStubbing
Description:
See original OngoingStubbing.thenReturn(Object)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract T createMock(org.easymock.IMocksControl)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract void replay()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)
+ public abstract org.mockito.BDDMockito$BDDStubber willThrow(java.lang.Throwable...)
+ public void start()
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
+ public static BDDStubber willReturn(Object toBeReturned)
Description:
See original Stubber.doReturn(Object)
+ public static BDDStubber willThrow(Throwable toBeThrown)
Description:
See original Stubber.doThrow(Throwable)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.BDDMockito$BDDStubber willThrow(java.lang.Throwable...)
+ public abstract T given(T)
+ public void start()
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public static BDDStubber willThrow(Throwable toBeThrown)
Description:
See original Stubber.doThrow(Throwable)
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static T createMock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public static T mock(java.lang.Class)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static T createNiceMock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public static T mock(java.lang.Class)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static T createNiceMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default, and the mock object will return 0, null or false for unexpected invocations.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public abstract void replay()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract org.mockito.BDDMockito$BDDMyOngoingStubbing willReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
+ public BDDMyOngoingStubbing
Description:
See original OngoingStubbing.thenReturn(Object)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters times(int)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation count times.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract void andStubReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expect(T)
- public abstract void andStubReturn(T)
- public static T createStrictMock(java.lang.Class)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public static T mock(java.lang.Class)
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
+ public void start()
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Class extends java.lang.Throwable>, java.lang.Class extends java.lang.Throwable>...)
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public java.lang.Object run()
- public static org.easymock.IExpectationSetters expectLastCall()
+ public void start()
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void verify(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void verify()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
+ public java.lang.Object run()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
- public boolean get(int)
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public boolean get(int)
+ public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
- public void replay()
Description:
Deprecated.
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
- public boolean get(int)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public boolean get(int)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
- public void replay()
Description:
Deprecated.
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
- public void replay()
Description:
Deprecated.
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)
+ public abstract T when(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation at least once.
Return Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public static void verify(java.lang.Object...)
+ public abstract T verify(T, org.mockito.verification.VerificationMode)
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void verify()
Description:
Deprecated.
+ public T verify(T var1, VerificationMode var2)
Description:
Verifies interaction in order. E.g:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock, times(2)).someMethod("was called first two times");
inOrder.verify(secondMock, atLeastOnce()).someMethod("was called second at least once");
See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.MockControl createControl(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static MockControl
Description:
Deprecated.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.MockControl createControl(java.lang.Class)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static MockControl
Description:
Deprecated.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createMock(java.lang.Class)
+ public abstract T given(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static BDDMyOngoingStubbing
Description:
see original Mockito.when(Object)
- public static T createMock(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static void initMocks(Object testClass)
Description:
Initializes objects annotated with Mockito annotations for given testClass: @ Mock, @ Spy, @ Captor, @ InjectMocks See examples in javadoc for MockitoAnnotations class.
- public static T createMock(java.lang.Class)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
- public static void verify(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T verify(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
- public void verify()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.Class)
- public abstract T createMock(org.easymock.MockType)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation once. This is default in EasyMock.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters anyTimes()
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public IExpectationSetters
Description:
Expect the last invocation any times.
Return Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Class extends java.lang.Throwable>, java.lang.Class extends java.lang.Throwable>...)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
+ public Stubber doThrow(Throwable toBeThrown)
Description:
Use it for stubbing consecutive calls in Mockito.doThrow(Throwable) style:
doThrow(new RuntimeException("one")).
doThrow(new RuntimeException("two"))
.when(mock).someVoidMethod();
See javadoc for Mockito.doThrow(Throwable)
Parameters:
- public static T createMock(java.lang.Class)
- public static T createStrictMock(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.Class)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.String, java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createMock(String name, Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createMock(java.lang.String, java.lang.Class)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
- public static T createMock(String name, Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createNiceMock(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createNiceMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default, and the mock object will return 0, null or false for unexpected invocations.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createNiceMock(java.lang.Class)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
- public static T createNiceMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default, and the mock object will return 0, null or false for unexpected invocations.
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createStrictMock(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createStrictMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
+ public static void initMocks(Object testClass)
Description:
Initializes objects annotated with Mockito annotations for given testClass: @ Mock, @ Spy, @ Captor, @ InjectMocks See examples in javadoc for MockitoAnnotations class.
- public static T createStrictMock(java.lang.Class)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createStrictMock(java.lang.Class)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static org.easymock.IExpectationSetters expect(T)
+ public static T mock(java.lang.Class)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static T createStrictMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public static org.mockito.stubbing.OngoingStubbing when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createStrictMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public static org.mockito.stubbing.OngoingStubbing when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createStrictMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createStrictMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract void andStubReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createStrictMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract void andStubReturn(T)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public void andStubReturn(T var1)
Description:
Sets a stub return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static T createStrictMock(java.lang.Class)
- public static void makeThreadSafe(java.lang.Object, boolean)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public static T createStrictMock(Class
Description:
Creates a mock object that implements the given interface, order checking is enabled by default.
- public void makeThreadSafe(boolean var1)
Description:
Makes the mock thread safe.
Parameters:
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a throwable that will be thrown for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public static T createNiceMock(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
+ public static T mock(java.lang.Class)
- public static T createNiceMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default, and the mock object will return 0, null or false for unexpected invocations.
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IExpectationSetters expectLastCall()
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IMocksControl createControl()
+ public static T mock(java.lang.Class)
- public static IMocksControl createControl()
Description:
Creates a control, order checking is disabled by default.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IMocksControl createControl()
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T mock(java.lang.Class)
- public static IMocksControl createControl()
Description:
Creates a control, order checking is disabled by default.
Return Parameters:
- public T createMock(IMocksControl var1)
Description:
Create mock from the provided mock control using the arguments passed to the builder.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IMocksControl createNiceControl()
+ public static void initMocks(java.lang.Object)
- public static IMocksControl createNiceControl()
Description:
Creates a control, order checking is disabled by default, and the mock objects created by this control will return 0, null or false for unexpected invocations.
Return Parameters:
+ public static void initMocks(Object testClass)
Description:
Initializes objects annotated with Mockito annotations for given testClass: @ Mock, @ Spy, @ Captor, @ InjectMocks See examples in javadoc for MockitoAnnotations class.
- public static org.easymock.IMocksControl createNiceControl()
- public abstract T createMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)
- public static IMocksControl createNiceControl()
Description:
Creates a control, order checking is disabled by default, and the mock objects created by this control will return 0, null or false for unexpected invocations.
Return Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
+ public static void initMocks(Object testClass)
Description:
Initializes objects annotated with Mockito annotations for given testClass: @ Mock, @ Spy, @ Captor, @ InjectMocks See examples in javadoc for MockitoAnnotations class.
- public static org.easymock.IMocksControl createStrictControl()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public static IMocksControl createStrictControl()
Description:
Creates a control, order checking is enabled by default.
Return Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IMocksControl createStrictControl()
+ public static T mock(java.lang.Class)
- public static IMocksControl createStrictControl()
Description:
Creates a control, order checking is enabled by default.
Return Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IMocksControl createStrictControl()
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
- public static IMocksControl createStrictControl()
Description:
Creates a control, order checking is enabled by default.
Return Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.IMocksControl createStrictControl()
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IMocksControl createStrictControl()
Description:
Creates a control, order checking is enabled by default.
Return Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IMocksControl createStrictControl()
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public static IMocksControl createStrictControl()
Description:
Creates a control, order checking is enabled by default.
Return Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.IMocksControl createStrictControl()
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract void replay()
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public static IMocksControl createStrictControl()
Description:
Creates a control, order checking is enabled by default.
Return Parameters:
- public static T createMock(Class
Description:
Creates a mock object that implements the given interface, order checking is disabled by default.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.MockControl createControl(java.lang.Class)
+ public static T mock(java.lang.Class)
- public static MockControl
Description:
Deprecated.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static org.easymock.MockControl createControl(java.lang.Class)
+ public static T mock(java.lang.Class)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public static MockControl
Description:
Deprecated.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public static org.easymock.MockControl createControl(java.lang.Class)
- public void setDefaultMatcher(org.easymock.ArgumentsMatcher)
+ public static T mock(java.lang.Class)
- public static MockControl
Description:
Deprecated.
Parameters:
- public void setDefaultMatcher(ArgumentsMatcher matcher)
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static void makeThreadSafe(java.lang.Object, boolean)
+ public abstract T when(T)
- public void makeThreadSafe(boolean var1)
Description:
Makes the mock thread safe.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static void makeThreadSafe(java.lang.Object, boolean)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public void makeThreadSafe(boolean var1)
Description:
Makes the mock thread safe.
Parameters:
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public static void makeThreadSafe(java.lang.Object, boolean)
+ public static T mock(java.lang.Class)
- public void makeThreadSafe(boolean var1)
Description:
Makes the mock thread safe.
Parameters:
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static void replay(java.lang.Object...)
+ public abstract T verify(T)
+ public boolean merge(org.mockito.asm.tree.analysis.Subroutine) throws org.mockito.asm.tree.analysis.AnalyzerException
- public void replay()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.BDDMockito$BDDMyOngoingStubbing willThrow(java.lang.Throwable...)
- public void replay()
Description:
Deprecated.
+ public static BDDStubber willThrow(Throwable toBeThrown)
Description:
See original Stubber.doThrow(Throwable)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets consecutive return values to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(1, 2, 3);
Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. See examples in javadoc for Mockito.when(T)
Parameters:
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)
- public void replay()
Description:
Deprecated.
+ private OngoingStubbing
Description:
Sets Throwable objects to be thrown when the method is called. E.g:
when(mock.someMethod()).thenThrow(new RuntimeException());
If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. if throwable is null then exception will be thrown. See examples in javadoc for Mockito.when(T)
Parameters:
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)
- public void replay()
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public static void replay(java.lang.Object...)
+ public static T verify(T)
- public void replay()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static void replay(java.lang.Object...)
+ public static void verifyNoMoreInteractions(java.lang.Object...)
- public void replay()
Description:
Deprecated.
+ public void verifyNoMoreInteractions()
Description:
Verifies that no more interactions happened in order. Different from Mockito.verifyNoMoreInteractions(Object...) because the order of verification matters. Example:
mock.foo(); //1st
mock.bar(); //2nd
mock.baz(); //3rd
InOrder inOrder = inOrder(mock);
inOrder.verify(mock).bar(); //2n
inOrder.verify(mock).baz(); //3rd (last method)
//passes because there are no more interactions after last method:
inOrder.verifyNoMoreInteractions();
//however this fails because 1st method was not verified:
Mockito.verifyNoMoreInteractions(mock);
- public static void replay(java.lang.Object...)
- public static void verify(java.lang.Object...)
+ public abstract T verify(T)
- public void replay()
Description:
Deprecated.
- public void verify()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static void replay(java.lang.Object...)
- public static void verify(java.lang.Object...)
- public static void reset(java.lang.Object...)
+ public abstract T verify(T, org.mockito.internal.verification.api.VerificationMode)
- public void replay()
Description:
Deprecated.
- public void verify()
Description:
Deprecated.
- public final void reset()
Description:
Deprecated.
+ public T verify(T var1, VerificationMode var2)
Description:
Verifies interaction in order. E.g:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock, times(2)).someMethod("was called first two times");
inOrder.verify(secondMock, atLeastOnce()).someMethod("was called second at least once");
See examples in javadoc for Mockito class
Parameters:
- public static void reportMatcher(org.easymock.IArgumentMatcher)
+ public static T argThat(org.hamcrest.Matcher)
+ public static T argThat(Matcher
Description:
Allows creating custom argument matchers. In rare cases when the parameter is a primitive then you *must* use relevant intThat(), floatThat(), etc. method. This way you will avoid NullPointerException during auto-unboxing. See examples in javadoc for ArgumentMatcher class
Parameters:
- public static void reset(java.lang.Object...)
+ public void reset(T...)
- public final void reset()
Description:
Deprecated.
+ public void reset()
Description:
Specified by: reset in interface ArgumentMatcherStorage
- public static void reset(java.lang.Object...)
+ public abstract T when(T)
- public final void reset()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static void reset(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public final void reset()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static void reset(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public final void reset()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static void reset(java.lang.Object...)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public final void reset()
Description:
Deprecated.
- public static IExpectationSetters
Description:
Returns the expectation setter for the last expected invocation in the current thread.
Parameters:
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public static void verify(java.lang.Object...)
+ public abstract T verify(T)
- public void verify()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static void verify(java.lang.Object...)
+ public abstract T verify(T, org.mockito.internal.verification.api.VerificationMode)
- public void verify()
Description:
Deprecated.
+ public T verify(T var1, VerificationMode var2)
Description:
Verifies interaction in order. E.g:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock, times(2)).someMethod("was called first two times");
inOrder.verify(secondMock, atLeastOnce()).someMethod("was called second at least once");
See examples in javadoc for Mockito class
Parameters:
- public static void verify(java.lang.Object...)
+ public abstract T verify(T, org.mockito.verification.VerificationMode)
- public void verify()
Description:
Deprecated.
+ public T verify(T var1, VerificationMode var2)
Description:
Verifies interaction in order. E.g:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock, times(2)).someMethod("was called first two times");
inOrder.verify(secondMock, atLeastOnce()).someMethod("was called second at least once");
See examples in javadoc for Mockito class
Parameters:
- public static void verify(java.lang.Object...)
+ public abstract T when(T)
- public void verify()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public static void verify(java.lang.Object...)
+ public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
- public void verify()
Description:
Deprecated.
- public static void verify(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
- public void verify()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public static void verify(java.lang.Object...)
+ public static org.mockito.ArgumentCaptor forClass(java.lang.Class)
- public void verify()
Description:
Deprecated.
+ public static ArgumentCaptor
Description:
Build a new ArgumentCaptor. Note that an ArgumentCaptor *don't do any type checks*, it is only there to avoid casting in your code. This might however change (type checks could be added) in a future major release.
- public static void verify(java.lang.Object...)
+ public static T verify(T)
- public void verify()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- public static void verify(java.lang.Object...)
- public static void reset(java.lang.Object...)
- public static org.easymock.IExpectationSetters expectLastCall()
- public static void replay(java.lang.Object...)
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer>)
+ public abstract T should()
- public void verify()
Description:
Deprecated.
- public final void reset()
Description:
Deprecated.
- public void replay()
Description:
Deprecated.
- public IExpectationSetters
Description:
Sets a return value that will be returned for the expected invocation.
Parameters:
+ public OngoingStubbing
Description:
Sets a generic Answer for the method. This method is an alias of OngoingStubbing.thenAnswer(Answer). This alias allows more readable tests on occasion, for example:
//using 'then' alias:
when(mock.foo()).then(returnCoolValue());
//versus good old 'thenAnswer:
when(mock.foo()).thenAnswer(byReturningCoolValue());
Parameters:
- public void expectAndReturn(java.lang.Object, java.lang.Object)
+ public abstract T when(T)
- public void expectAndReturn(V1 ignored, V2 value)
Description:
Deprecated.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public void expectAndReturn(java.lang.Object, java.lang.Object)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void expectAndReturn(V1 ignored, V2 value)
Description:
Deprecated.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public void expectAndReturn(java.lang.Object, java.lang.Object)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void expectAndReturn(V1 ignored, V2 value)
Description:
Deprecated.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public void expectAndReturn(java.lang.Object, java.lang.Object, int)
+ public abstract T when(T)
- public void expectAndReturn(V1 ignored, V2 value, Range range)
Description:
Deprecated.
Parameters:
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public void expectAndReturn(java.lang.Object, java.lang.Object, int)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void expectAndReturn(V1 ignored, V2 value, Range range)
Description:
Deprecated.
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public void expectAndReturn(java.lang.Object, java.lang.Object, int)
- public void expectAndReturn(java.lang.Object, java.lang.Object)
- public void replay()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void expectAndReturn(V1 ignored, V2 value, Range range)
Description:
Deprecated.
Parameters:
- public void expectAndReturn(V1 ignored, V2 value)
Description:
Deprecated.
Parameters:
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public void push(boolean)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public void push(boolean)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public void push(boolean)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
+ public Object answer(InvocationOnMock invocation) throws Throwable
Description:
Specified by: answer in interface Answer<java.lang.Object>
Parameters:
- public void replay()
+ public abstract T when(T)
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
- public void replay()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void replay()
Description:
Deprecated.
+ public T when(T mock)
Description:
Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style Example:
doThrow(new RuntimeException())
.when(mockedList).clear();
//following throws RuntimeException:
mockedList.clear();
Read more about those methods: Mockito.doThrow(Throwable) Mockito.doAnswer(Answer) Mockito.doNothing() Mockito.doReturn(Object) See examples in javadoc for Mockito
Parameters:
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public void replay()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
- public void replay()
Description:
Deprecated.
+ public OngoingStubbing
Description:
Sets a return value to be returned when the method is called. E.g:
when(mock.someMethod()).thenReturn(10);
See examples in javadoc for Mockito.when(T)
Parameters:
- public void set(int)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public void set(int)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer extends T>)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
- public IExpectationSetters
Description:
Sets an object that will be used to calculate the answer for the expected invocation (either return a value, or throw an exception).
Parameters:
- public void setDefaultMatcher(org.easymock.ArgumentsMatcher)
+ public static T mock(java.lang.Class)
- public void setDefaultMatcher(ArgumentsMatcher matcher)
Description:
Deprecated.
+ public static T mock(Class
Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class
Parameters:
- public void verify()
+ public abstract T verify(T)
- public void verify()
Description:
Deprecated.
+ public T verify(T var1)
Description:
Verifies interaction happened once in order. Alias to inOrder.verify(mock, times(1)) Example:
InOrder inOrder = inOrder(firstMock, secondMock);
inOrder.verify(firstMock).someMethod("was called first");
inOrder.verify(secondMock).someMethod("was called second");
See examples in javadoc for Mockito class
Parameters:
- boolean isNull()
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- java.lang.String[] toString(java.lang.Object[], java.lang.Class>[])
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract int size()
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)
+ public static void assertNotSame(String message, Object expected, Object actual)
Description:
Asserts that two objects do not refer to the same object. If they do refer to the same object, an AssertionError is thrown with the given message.
Parameters:
- public abstract int size()
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public abstract int[] indices()
+ public static org.hamcrest.Matcher equalTo(T)
+ public static Matcher
Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
- public abstract int[] indices()
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public abstract java.lang.Class[] getValue()
+ public abstract java.lang.Object getValue() throws org.junit.experimental.theories.PotentialAssignment$CouldNotGenerateValueException
- public String[] getValue()
Description:
The list of variables used to fill the parameters of this method. These variables must be defined in your testng.xml file. For example @Parameters({ "xmlPath" }) @Test public void verifyXmlFile(String path) { ... } and in testng.xml: <parameter name="xmlPath" value="account.xml" />
+ public Object getValue() throws CouldNotGenerateValueException
Description:
Throws: PotentialAssignment.CouldNotGenerateValueException
- public abstract java.lang.Class[] getValue()
+ public static void assertEquals(int, int)
- public String[] getValue()
Description:
The list of variables used to fill the parameters of this method. These variables must be defined in your testng.xml file. For example @Parameters({ "xmlPath" }) @Test public void verifyXmlFile(String path) { ... } and in testng.xml: <parameter name="xmlPath" value="account.xml" />
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract java.lang.Class[] getValue()
- public boolean equals(java.lang.Object)
+ public static void assertEquals(int, int)
- public String[] getValue()
Description:
The list of variables used to fill the parameters of this method. These variables must be defined in your testng.xml file. For example @Parameters({ "xmlPath" }) @Test public void verifyXmlFile(String path) { ... } and in testng.xml: <parameter name="xmlPath" value="account.xml" />
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract java.lang.Class[] getValue()
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public abstract java.lang.Object getValue() throws org.junit.experimental.theories.PotentialAssignment$CouldNotGenerateValueException
- public String[] getValue()
Description:
The list of variables used to fill the parameters of this method. These variables must be defined in your testng.xml file. For example @Parameters({ "xmlPath" }) @Test public void verifyXmlFile(String path) { ... } and in testng.xml: <parameter name="xmlPath" value="account.xml" />
+ public Object getValue() throws CouldNotGenerateValueException
Description:
Throws: PotentialAssignment.CouldNotGenerateValueException
- public abstract java.lang.Object getInstance()
+ public static void assertEquals(int, int)
- public Object getInstance()
Description:
The instance on which this method was run.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract java.lang.Object getInstance()
- public abstract java.lang.Class[] getValue()
- public boolean equals(java.lang.Object)
+ public static void assertEquals(int, int)
- public Object getInstance()
Description:
The instance on which this method was run.
- public String[] getValue()
Description:
The list of variables used to fill the parameters of this method. These variables must be defined in your testng.xml file. For example @Parameters({ "xmlPath" }) @Test public void verifyXmlFile(String path) { ... } and in testng.xml: <parameter name="xmlPath" value="account.xml" />
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract java.lang.Object[] getInstances(boolean)
+ public static void assertTrue(java.lang.String, boolean)
- public Object[] getInstances(boolean create)
Description:
Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
Parameters:
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public abstract java.lang.Object[] getInstances(boolean)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
- public Object[] getInstances(boolean create)
Description:
Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
Parameters:
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public abstract java.lang.Object[] getInstances(boolean)
- public void assertNotEquals(double, double, double)
- public abstract int size()
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)
- public Object[] getInstances(boolean create)
Description:
Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
Parameters:
+ public static void assertNotSame(String message, Object expected, Object actual)
Description:
Asserts that two objects do not refer to the same object. If they do refer to the same object, an AssertionError is thrown with the given message.
Parameters:
- public abstract java.lang.String getMessage()
+ public java.lang.String getMessage()
- public String getMessage()
Description:
Overrides: getMessage in class Throwable
+ public String getMessage()
Description:
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
- public abstract java.lang.String getMessage()
+ public static void fail(java.lang.String)
- public String getMessage()
Description:
Overrides: getMessage in class Throwable
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
- public abstract java.lang.String getType()
+ public abstract java.lang.Class> getType()
+ public Class> getType()
Description:
Specified by: getType in class FrameworkMember<FrameworkField>
Return Parameters:
- public abstract java.lang.String getType()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract java.lang.String getType()
- java.lang.String[] toString(java.lang.Object[], java.lang.Class>[])
+ public abstract java.lang.Class> getType()
- public String toString()
Description:
Overrides: toString in class Object
+ public Class> getType()
Description:
Specified by: getType in class FrameworkMember<FrameworkField>
Return Parameters:
- public abstract org.testng.xml.XmlTest getTest()
+ public junit.framework.Test getTest()
- public XmlTest getTest()
Description:
Specified by: getTest in interface org.testng.internal.ITestResultNotifier
- public abstract void run(org.testng.IConfigureCallBack, org.testng.ITestResult)
+ public junit.framework.TestResult start(java.lang.String[]) throws java.lang.Exception
- public String run(String template, Map
Description:
Throws: IOException
- public abstract void run(org.testng.IConfigureCallBack, org.testng.ITestResult)
+ public synchronized void stop()
- public String run(String template, Map
Description:
Throws: IOException
- public abstract void run(org.testng.IConfigureCallBack, org.testng.ITestResult)
- public abstract void runTestMethod(org.testng.ITestResult)
+ public junit.framework.TestResult start(java.lang.String[]) throws java.lang.Exception
+ public synchronized void stop()
- public String run(String template, Map
Description:
Throws: IOException
- public void runTestMethod(ITestResult tr)
Description:
Invoke the test method currently being hijacked.
- public abstract void runTestMethod(org.testng.ITestResult)
+ public junit.framework.TestResult start(java.lang.String[]) throws java.lang.Exception
- public void runTestMethod(ITestResult tr)
Description:
Invoke the test method currently being hijacked.
- public abstract void runTestMethod(org.testng.ITestResult)
+ public synchronized void stop()
- public void runTestMethod(ITestResult tr)
Description:
Invoke the test method currently being hijacked.
- public abstract void setId(java.lang.String)
+ public static org.hamcrest.Matcher equalTo(T)
+ public static Matcher
Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
- public abstract void setParameters(java.lang.Object[])
+ org.hamcrest.Matcher build()
- public void setParameters(Object[] parameters)
Description:
Sets parameters.
Parameters:
+ public Timeout build()
Description:
Builds a Timeout instance using the values in this builder.,
- public abstract void shutdown()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public abstract void shutdown()
+ public static void assertEquals(java.lang.String, float, float, float)
+ public static void assertEquals(String message, float expected, float actual, float delta)
Description:
Asserts that two doubles or floats are equal to within a positive delta. If they are not, an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes
Parameters:
- public abstract void shutdown()
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public boolean equals(java.lang.Object)
+ public boolean equals(java.lang.Object)
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public boolean equals(Object obj)
Description:
Overrides: equals in class Object
- public boolean equals(java.lang.Object)
+ public static void assertEquals(int, int)
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public boolean equals(java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public boolean equals(java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertTrue(boolean)
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public int compareTo(java.lang.Object)
+ public static void assertEquals(int, int)
- public int compareTo(Object o)
Description:
Specified by: compareTo in interface Comparable
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public java.lang.Object next()
+ public abstract java.lang.Class> getType()
+ public Class> getType()
Description:
Specified by: getType in class FrameworkMember<FrameworkField>
Return Parameters:
- public java.lang.Object next()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public java.lang.String toString()
+ public java.lang.String toString()
- public String toString()
Description:
Overrides: toString in class Object
+ public String toString()
Description:
Overrides: toString in class Object
- public org.testng.collections.Objects$ToStringHelper add(java.lang.String, java.lang.Object)
+ public static org.junit.rules.ExpectedException none()
+ public static ExpectedException none()
Description:
Returns a rule that expects no exception to be thrown (identical to behavior without this rule).
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
- boolean isNull()
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
- public boolean equals(java.lang.Object)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public boolean equals(java.lang.Object)
- public boolean equals(Object obj)
Description:
Overrides: equals in class Object
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
+ public boolean equals(Object obj)
Description:
Overrides: equals in class Object
- public static org.testng.internal.collections.Pair create(A, B)
+ public void expect(java.lang.Class extends java.lang.Throwable>)
+ public void expect(Class extends Throwable> type)
Description:
Adds matcher to the list of requirements for any thrown exception.
- public static java.util.Set newHashSet(java.util.Collection)
+ public static void assertFalse(boolean)
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public static java.util.Set newHashSet(java.util.Collection)
+ public static void assertTrue(boolean)
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public static java.util.Set newHashSet(java.util.Collection)
- public void assertTrue(boolean)
- public void assertFalse(boolean)
- public static void fail(java.lang.String, java.lang.Throwable)
+ public static void assertTrue(boolean)
+ public static void assertFalse(boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
- public static void fail(String message, Throwable realCause)
Description:
Fails a test with the given message and wrapping the original exception.
Parameters:
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public static java.lang.String toString(java.lang.Object)
+ public static void assertEquals(int, int)
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(byte[], byte[])
+ public static void assertEquals(int, int)
- public static void assertEquals(byte expected, byte actual)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(byte[], byte[])
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(byte expected, byte actual)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.lang.String, byte[], byte[])
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertEquals(String message, byte expected, byte actual)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(int, int)
- public static void assertEquals(Map actual, Map expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Map actual, Map expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Map, ?>, java.util.Map, ?>)
+ public static void assertEquals(java.lang.String, float, float, float)
- public static void assertEquals(Map actual, Map expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, float expected, float actual, float delta)
Description:
Asserts that two doubles or floats are equal to within a positive delta. If they are not, an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes
Parameters:
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(int, int)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertThat(T, org.hamcrest.Matcher)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertThat(T actual, Matcher
Description:
Asserts that actual satisfies the condition specified by matcher. If not, an AssertionError is thrown with information about the matcher and failing value. Example:
assertThat(0, is(1)); // fails:
// failure message:
// expected: is <1>
// got value: <0>
assertThat(0, is(not(1))) // passes
- public static void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(int, int)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>)
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(int, int)
+ public static void assertEquals(java.lang.String, int, int)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertEquals(String message, int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(int, int)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(java.lang.String, float, float, float)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(String message, float expected, float actual, float delta)
Description:
Asserts that two doubles or floats are equal to within a positive delta. If they are not, an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(java.lang.String, int, int)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(String message, int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
- public static void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.String, int, int)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertFalse(boolean)
+ public static void assertThat(T, org.hamcrest.Matcher)
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertThat(T actual, Matcher
Description:
Asserts that actual satisfies the condition specified by matcher. If not, an AssertionError is thrown with information about the matcher and failing value. Example:
assertThat(0, is(1)); // fails:
// failure message:
// expected: is <1>
// got value: <0>
assertThat(0, is(not(1))) // passes
- public static void assertFalse(boolean)
+ public static void assertFalse(boolean)
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertFalse(boolean)
+ public static void assertFalse(java.lang.String, boolean)
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
- public static void assertFalse(boolean, java.lang.String)
+ public static void assertFalse(java.lang.String, boolean)
- public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
- public static void assertNotNull(java.lang.Object)
+ public static org.hamcrest.Matcher equalTo(T)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
+ public static Matcher
Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
- public static void assertNotNull(java.lang.Object)
+ public static void assertThat(T, org.hamcrest.Matcher)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
+ public static void assertThat(T actual, Matcher
Description:
Asserts that actual satisfies the condition specified by matcher. If not, an AssertionError is thrown with information about the matcher and failing value. Example:
assertThat(0, is(1)); // fails:
// failure message:
// expected: is <1>
// got value: <0>
assertThat(0, is(not(1))) // passes
- public static void assertNotNull(java.lang.Object)
+ public static void assertNotNull(java.lang.Object)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
- public static void assertNotNull(java.lang.Object)
- public static void assertFalse(boolean)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertFalse(boolean)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertNotNull(java.lang.Object)
- public static void assertTrue(boolean)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertTrue(boolean)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertNotNull(java.lang.Object)
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
+ public static void assertThat(T, org.hamcrest.Matcher)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
+ public static void assertThat(T actual, Matcher
Description:
Asserts that actual satisfies the condition specified by matcher. If not, an AssertionError is thrown with information about the matcher and failing value. Example:
assertThat(0, is(1)); // fails:
// failure message:
// expected: is <1>
// got value: <0>
assertThat(0, is(not(1))) // passes
- public static void assertNotNull(java.lang.Object, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
- public static void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertEquals(int, int)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
- public static void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertEquals(java.lang.String, int, int)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertEquals(String message, int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
- public static void assertFalse(boolean)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertFalse(boolean)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
- public static void assertTrue(boolean)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertTrue(boolean)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public static void assertNotNull(java.lang.Object, java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void assertNotSame(java.lang.Object, java.lang.Object)
+ public static void assertNotSame(java.lang.Object, java.lang.Object)
- public static void assertNotSame(Object expected, Object actual)
Description:
Asserts that two objects refer to the same object. If they are not the same an AssertionFailedError is thrown.
+ public static void assertNotSame(Object expected, Object actual)
Description:
Asserts that two objects do not refer to the same object. If they do refer to the same object, an AssertionError without a message is thrown.
Parameters:
- public static void assertNull(java.lang.Object)
+ public static void assertNull(java.lang.Object)
- public static void assertNull(Object object)
Description:
Asserts that an object is null.
+ public static void assertNull(Object object)
Description:
Asserts that an object is null. If it isn't an AssertionError is thrown.
Parameters:
- public static void assertNull(java.lang.Object, java.lang.String)
+ public static void assertNull(java.lang.String, java.lang.Object)
- public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not an AssertionFailedError is thrown with the given message.
+ public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not, an AssertionError is thrown with the given message.
Parameters:
- public static void assertTrue(boolean)
+ public static void assertThat(T, org.hamcrest.Matcher)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertThat(T actual, Matcher
Description:
Asserts that actual satisfies the condition specified by matcher. If not, an AssertionError is thrown with information about the matcher and failing value. Example:
assertThat(0, is(1)); // fails:
// failure message:
// expected: is <1>
// got value: <0>
assertThat(0, is(not(1))) // passes
- public static void assertTrue(boolean)
+ public static void assertTrue(boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertTrue(boolean)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public static void assertTrue(boolean)
- public abstract int[] indices()
- public void execute() throws org.apache.tools.ant.BuildException
- public void setIndex(int)
- public abstract void setId(java.lang.String)
- public static void assertFalse(boolean)
+ public static org.hamcrest.Matcher equalTo(T)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public void execute() throws BuildException
Description:
Launches TestNG in a new JVM.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static Matcher
Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
- public static void assertTrue(boolean)
- public static void assertFalse(boolean)
+ public static void assertTrue(boolean)
+ public static void assertFalse(boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertTrue(boolean)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public static void assertTrue(boolean)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public static void assertTrue(boolean, java.lang.String)
+ public static void fail(java.lang.String)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
- public static void assertTrue(boolean, java.lang.String)
- public abstract java.lang.Object[] getInstances(boolean)
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
- public void assertNotEquals(double, double, double)
- public abstract int size()
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public Object[] getInstances(boolean create)
Description:
Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
Parameters:
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertNotSame(String message, Object expected, Object actual)
Description:
Asserts that two objects do not refer to the same object. If they do refer to the same object, an AssertionError is thrown with the given message.
Parameters:
- public static void assertTrue(boolean, java.lang.String)
- public abstract java.lang.Object[] getInstances(boolean)
- public void assertNotEquals(double, double, double)
- public abstract int size()
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public Object[] getInstances(boolean create)
Description:
Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
Parameters:
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertNotSame(String message, Object expected, Object actual)
Description:
Asserts that two objects do not refer to the same object. If they do refer to the same object, an AssertionError is thrown with the given message.
Parameters:
- public static void clear()
+ public static org.junit.rules.ExpectedException none()
- public static void clear()
Description:
Erase the content of all the output generated so far.
+ public static ExpectedException none()
Description:
Returns a rule that expects no exception to be thrown (identical to behavior without this rule).
- public static void fail()
+ public static void fail()
- public static void fail()
Description:
Fails a test with no message.
+ public static void fail()
Description:
Fails a test with no message.
- public static void fail(java.lang.String)
+ public static void fail(java.lang.String)
- public static void fail(String message)
Description:
Fails a test with the given message.
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
- public static void fail(java.lang.String)
- public abstract java.lang.String getMessage()
+ public static void fail(java.lang.String)
+ public java.lang.String getMessage()
- public static void fail(String message)
Description:
Fails a test with the given message.
- public String getMessage()
Description:
Overrides: getMessage in class Throwable
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
+ public String getMessage()
Description:
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
- public static void fail(java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void fail(java.lang.String)
+ public static void assertEquals(int, int)
+ public static void fail()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void fail(String message)
Description:
Fails a test with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void fail()
Description:
Fails a test with no message.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public static void fail(java.lang.String, java.lang.Throwable)
+ public static void fail(java.lang.String)
- public static void fail(String message, Throwable realCause)
Description:
Fails a test with the given message and wrapping the original exception.
Parameters:
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
- public static void log(java.lang.String, int, boolean)
+ public static org.junit.rules.ExpectedException none()
- public static void log(String s, int level, boolean logToStandardOut)
Description:
Log the passed string to the HTML reports if the current verbosity is equal or greater than the one passed in parameter. If logToStandardOut is true, the string will also be printed on standard out.
Parameters:
+ public static ExpectedException none()
Description:
Returns a rule that expects no exception to be thrown (identical to behavior without this rule).
- public static void log(java.lang.String, int, boolean)
- public org.testng.collections.Objects$ToStringHelper add(java.lang.String, java.lang.Object)
- public static void clear()
+ public static org.junit.rules.ExpectedException none()
- public static void log(String s, int level, boolean logToStandardOut)
Description:
Log the passed string to the HTML reports if the current verbosity is equal or greater than the one passed in parameter. If logToStandardOut is true, the string will also be printed on standard out.
Parameters:
- public static void clear()
Description:
Erase the content of all the output generated so far.
+ public static ExpectedException none()
Description:
Returns a rule that expects no exception to be thrown (identical to behavior without this rule).
- public void addParameter(java.lang.String, java.lang.String)
+ org.hamcrest.Matcher build()
+ public Timeout build()
Description:
Builds a Timeout instance using the values in this builder.,
- public void addParameter(java.lang.String, java.lang.String)
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public void assertEquals(java.util.Map, ?>, java.util.Map, ?>)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Map actual, Map expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Map, ?>, java.util.Map, ?>)
+ public static void assertEquals(java.lang.String, float, float, float)
- public static void assertEquals(Map actual, Map expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, float expected, float actual, float delta)
Description:
Asserts that two doubles or floats are equal to within a positive delta. If they are not, an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(int, int)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.String, float, float, float)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, float expected, float actual, float delta)
Description:
Asserts that two doubles or floats are equal to within a positive delta. If they are not, an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- java.lang.String[] toString(java.lang.Object[], java.lang.Class>[])
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- java.lang.String[] toString(java.lang.Object[], java.lang.Class>[])
- public java.lang.Object next()
- public abstract java.lang.String getType()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public abstract java.lang.Class> getType()
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public Class> getType()
Description:
Specified by: getType in class FrameworkMember<FrameworkField>
Return Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public abstract java.lang.String getType()
- java.lang.String[] toString(java.lang.Object[], java.lang.Class>[])
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public abstract java.lang.Class> getType()
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public Class> getType()
Description:
Specified by: getType in class FrameworkMember<FrameworkField>
Return Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public abstract void shutdown()
+ public static void assertArrayEquals(long[], long[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertArrayEquals(long[] expecteds, long[] actuals)
Description:
Asserts that two object arrays are equal. If they are not, an AssertionError is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public abstract void shutdown()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public int compareTo(java.lang.Object)
+ public static void assertEquals(int, int)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public int compareTo(Object o)
Description:
Specified by: compareTo in interface Comparable
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
+ public static void assertEquals(int, int)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public void assertEquals(java.util.Set>, java.util.Set>)
- public static java.lang.String toString(java.lang.Object)
+ public static void assertEquals(int, int)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public void assertFalse(boolean)
+ public static void assertEquals(int, int)
+ public static void assertFalse(boolean)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public void assertTrue(boolean, java.lang.String)
+ public abstract org.junit.runners.model.Statement apply(org.junit.runners.model.Statement, org.junit.runner.Description)
+ public org.junit.runners.model.Statement()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertTrue(boolean)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public Statement apply(Statement var1, Description var2)
Description:
Modifies the method-running Statement to implement this test-running rule.
Parameters:
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>)
- public void assertTrue(boolean, java.lang.String)
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
+ public static void assertEquals(int, int)
+ public static void assertTrue(java.lang.String, boolean)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public void assertEquals(java.util.Set>, java.util.Set>)
- void assertNotEquals(int, int)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertNotEquals(long, long)
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertNotEquals(long unexpected, long actual)
Description:
Asserts that two objects are not equals. If they are, an AssertionError without a message is thrown. If unexpected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(java.lang.String, int, int)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(String message, int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertNull(java.lang.String, java.lang.Object)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not, an AssertionError is thrown with the given message.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>)
- public static java.lang.String toString(java.lang.Object)
- public void assertNotNull(java.lang.Object)
+ public static void assertEquals(java.lang.String, int, int)
+ public static void assertEquals(int, int)
+ public static void assertNotNull(java.lang.Object)
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public String toString()
Description:
Overrides: toString in class Object
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
+ public static void assertEquals(String message, int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
- public void assertFalse(boolean)
+ public static void assertFalse(boolean)
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertFalse(boolean)
+ public static void assertFalse(java.lang.String, boolean)
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertFalse(boolean)
- public void assertTrue(boolean)
+ public static void assertFalse(boolean)
+ public static void assertTrue(boolean)
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertFalse(boolean, java.lang.String)
+ public static void assertFalse(java.lang.String, boolean)
- public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertFalse(boolean, java.lang.String)
- public static void fail(java.lang.String)
+ public static void assertFalse(java.lang.String, boolean)
+ public static void fail(java.lang.String)
- public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.
- public static void fail(String message)
Description:
Fails a test with the given message.
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void fail(String message)
Description:
Fails a test with the given message.
Parameters:
- public void assertFalse(boolean, java.lang.String)
- public void assertTrue(boolean, java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertFalse(java.lang.String, boolean)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public void assertNotEquals(double, double, double)
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)
+ public static void assertNotSame(String message, Object expected, Object actual)
Description:
Asserts that two objects do not refer to the same object. If they do refer to the same object, an AssertionError is thrown with the given message.
Parameters:
- public void assertNotEquals(double, double, double)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertNotNull(java.lang.Object)
+ public static void assertNotNull(java.lang.Object)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
- public void assertNotNull(java.lang.Object)
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertEquals(int, int)
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertNotNull(java.lang.Object)
- public void assertEquals(java.util.Set>, java.util.Set>)
- public static void fail(java.lang.String, java.lang.Throwable)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
- public static void fail(String message, Throwable realCause)
Description:
Fails a test with the given message and wrapping the original exception.
Parameters:
+ public static void assertNotNull(Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.
Parameters:
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertNotNull(java.lang.Object, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
- public void assertNotNull(java.lang.Object, java.lang.String)
- public void assertNull(java.lang.Object, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertNull(java.lang.String, java.lang.Object)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not an AssertionFailedError is thrown with the given message.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not, an AssertionError is thrown with the given message.
Parameters:
- public void assertNotNull(java.lang.Object, java.lang.String)
- public void assertTrue(boolean, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertNotNull(java.lang.Object, java.lang.String)
- public void assertTrue(boolean, java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertNotNull(java.lang.String, java.lang.Object)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertEquals(int, int)
- public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionFailedError is thrown with the given message.
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertNotNull(String message, Object object)
Description:
Asserts that an object isn't null. If it is an AssertionError is thrown with the given message.
Parameters:
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertNull(java.lang.Object)
+ public static void assertNull(java.lang.Object)
- public static void assertNull(Object object)
Description:
Asserts that an object is null.
+ public static void assertNull(Object object)
Description:
Asserts that an object is null. If it isn't an AssertionError is thrown.
Parameters:
- public void assertNull(java.lang.Object)
- public void assertEquals(java.util.Map, ?>, java.util.Map, ?>)
- public abstract void shutdown()
+ public static void assertNull(java.lang.Object)
+ public static void assertEquals(java.lang.String, float, float, float)
- public static void assertNull(Object object)
Description:
Asserts that an object is null.
- public static void assertEquals(Map actual, Map expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertNull(Object object)
Description:
Asserts that an object is null. If it isn't an AssertionError is thrown.
Parameters:
+ public static void assertEquals(String message, float expected, float actual, float delta)
Description:
Asserts that two doubles or floats are equal to within a positive delta. If they are not, an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes
Parameters:
- public void assertNull(java.lang.Object, java.lang.String)
+ public static void assertNull(java.lang.String, java.lang.Object)
- public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not an AssertionFailedError is thrown with the given message.
+ public static void assertNull(String message, Object object)
Description:
Asserts that an object is null. If it is not, an AssertionError is thrown with the given message.
Parameters:
- public void assertTrue(boolean)
+ public static void assertTrue(boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertTrue(boolean)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertTrue(boolean)
- java.lang.String[] toString(java.lang.Object[], java.lang.Class>[])
- public abstract void shutdown()
+ public static void assertTrue(boolean)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public String toString()
Description:
Overrides: toString in class Object
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertTrue(boolean)
- public void assertFalse(boolean)
+ public static void assertTrue(boolean)
+ public static void assertFalse(boolean)
- public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError.
- public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError.
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
+ public static void assertFalse(boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(boolean)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError without a message.
Parameters:
- public void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void assertTrue(boolean, java.lang.String)
- public static void assertEquals(java.util.Set>, java.util.Set>)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertEquals(int, int)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public static void assertEquals(Set actual, Set expected)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void assertTrue(boolean, java.lang.String)
- public void assertEquals(java.util.Set>, java.util.Set>, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public static void assertEquals(Set> actual, Set> expected, String message)
Description:
Asserts that two objects are equal. If they are not an AssertionFailedError is thrown with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertEquals(String message, Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError is thrown with the given message. If expected and actual are null, they are considered equal.
Parameters:
- public void assertTrue(boolean, java.lang.String)
- public void assertFalse(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)
+ public static void assertFalse(java.lang.String, boolean)
- public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionFailedError with the given message.
- public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionFailedError with the given message.
+ public static void assertTrue(String message, boolean condition)
Description:
Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
Parameters:
+ public static void assertFalse(String message, boolean condition)
Description:
Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
Parameters:
- public void execute() throws org.apache.tools.ant.BuildException
+ public static org.hamcrest.Matcher equalTo(T)
- public void execute() throws BuildException
Description:
Launches TestNG in a new JVM.
+ public static Matcher
Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public abstract java.lang.Object getValue() throws org.junit.experimental.theories.PotentialAssignment$CouldNotGenerateValueException
+ public Object getValue() throws CouldNotGenerateValueException
Description:
Throws: PotentialAssignment.CouldNotGenerateValueException
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public static void assertEquals(int, int)
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public static void assertEquals(int, int)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
+ public static void assertEquals(int expected, int actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
Description:
Attempts to retrieve the value of this field on target
- public void setIndex(int)
+ public static org.hamcrest.Matcher equalTo(T)
+ public static Matcher
Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
- public void testAssumptionFailure(org.junit.runner.notification.Failure)
+ void add(org.hamcrest.Matcher>)
- public void testFailure(org.junit.runner.notification.Failure) throws java.lang.Exception
+ public void testAssumptionFailure(org.junit.runner.notification.Failure)
+ public void testAssumptionFailure(Failure failure)
Description:
Called when an atomic test flags that it assumes a condition that is false
Parameters:
- public void testFailure(org.junit.runner.notification.Failure) throws java.lang.Exception
+ public void testAssumptionFailure(org.junit.runner.notification.Failure)
+ void add(org.hamcrest.Matcher>)
+ public void testAssumptionFailure(Failure failure)
Description:
Called when an atomic test flags that it assumes a condition that is false
Parameters:
- public void testFailure(org.junit.runner.notification.Failure) throws java.lang.Exception
+ void add(org.hamcrest.Matcher>)
- void assertNotEquals(int, int)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertEquals(Object expected, Object actual)
Description:
Asserts that two objects are equal. If they are not, an AssertionError without a message is thrown. If expected and actual are null, they are considered equal.
Parameters:
- void assertNotEquals(int, int)
+ public static void assertNotEquals(long, long)
+ public static void assertNotEquals(long unexpected, long actual)
Description:
Asserts that two objects are not equals. If they are, an AssertionError without a message is thrown. If unexpected and actual are null, they are considered equal.
Parameters:
- protected org.apache.commons.logging.Log newInstance(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- protected Log newInstance(String name) throws LogConfigurationException
Description:
Create and return a new Log instance for the specified name.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- protected org.apache.commons.logging.Log newInstance(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
+ public abstract void debug(java.lang.String, java.lang.Object)
- protected Log newInstance(String name) throws LogConfigurationException
Description:
Create and return a new Log instance for the specified name.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- protected org.apache.commons.logging.Log newInstance(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- protected Log newInstance(String name) throws LogConfigurationException
Description:
Create and return a new Log instance for the specified name.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object, java.lang.Object)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void info(String var1, Object var2, Object var3)
Description:
Log a message at the INFO level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String)
+ public abstract void debug(java.lang.String)
+ public abstract void info(java.lang.String)
+ public abstract void warn(java.lang.String)
+ public abstract void error(java.lang.String)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- protected void log(int, java.lang.Object, java.lang.Throwable)
- public abstract void error(java.lang.Object)
+ public abstract void trace(java.lang.String)
+ public abstract void debug(java.lang.String)
+ public abstract void info(java.lang.String)
+ public abstract void warn(java.lang.String)
+ public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- protected void log(int type, Object message, Throwable t)
Description:
Do the actual logging. This method assembles the message and then calls write() to cause it to be written.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- protected void write(java.lang.StringBuffer)
+ public abstract void debug(java.lang.String)
- protected void write(StringBuffer buffer)
Description:
Write the content of the message accumulated in the specified StringBuffer to the appropriate output destination. The default implementation writes to System.err.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- protected void write(java.lang.StringBuffer)
+ public abstract void debug(java.lang.String, java.lang.Object)
- protected void write(StringBuffer buffer)
Description:
Write the content of the message accumulated in the specified StringBuffer to the appropriate output destination. The default implementation writes to System.err.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- protected void write(java.lang.StringBuffer)
+ public abstract void error(java.lang.String, java.lang.Object)
- protected void write(StringBuffer buffer)
Description:
Write the content of the message accumulated in the specified StringBuffer to the appropriate output destination. The default implementation writes to System.err.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- protected void write(java.lang.StringBuffer)
+ public abstract void warn(java.lang.String, java.lang.Object)
- protected void write(StringBuffer buffer)
Description:
Write the content of the message accumulated in the specified StringBuffer to the appropriate output destination. The default implementation writes to System.err.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- protected void write(java.lang.StringBuffer)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- protected void write(StringBuffer buffer)
Description:
Write the content of the message accumulated in the specified StringBuffer to the appropriate output destination. The default implementation writes to System.err.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public abstract boolean isDebugEnabled()
+ public abstract boolean isDebugEnabled()
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String, java.lang.Object)
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract boolean isDebugEnabled()
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract boolean isDebugEnabled()
- public abstract void debug(java.lang.Object)
- public abstract boolean isTraceEnabled()
- public abstract void trace(java.lang.Object)
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String)
+ public abstract boolean isTraceEnabled()
+ public abstract void trace(java.lang.String)
+ public abstract void trace(java.lang.String, java.lang.Object)
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public boolean isTraceEnabled()
Description:
Is trace logging currently enabled?
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
- public void trace(Object message, Throwable exception)
Description:
Log a message and exception with trace log level.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public boolean isTraceEnabled()
Description:
Is the logger instance enabled for the TRACE level?
Return Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
+ public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract boolean isInfoEnabled()
+ public abstract boolean isInfoEnabled()
- public boolean isInfoEnabled()
Description:
Is info logging currently enabled?
+ public boolean isInfoEnabled()
Description:
Is the logger instance enabled for the INFO level?
Return Parameters:
- public abstract boolean isInfoEnabled()
+ public abstract boolean isInfoEnabled(org.slf4j.Marker)
- public boolean isInfoEnabled()
Description:
Is info logging currently enabled?
+ public boolean isInfoEnabled(Marker var1)
Description:
Similar to isInfoEnabled() method except that the marker data is also taken into consideration.
Parameters:
- public abstract boolean isInfoEnabled()
+ public abstract void info(java.lang.String)
- public boolean isInfoEnabled()
Description:
Is info logging currently enabled?
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public abstract boolean isInfoEnabled()
+ public abstract void info(java.lang.String, java.lang.Object)
- public boolean isInfoEnabled()
Description:
Is info logging currently enabled?
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract boolean isInfoEnabled()
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object)
- public boolean isInfoEnabled()
Description:
Is info logging currently enabled?
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract boolean isTraceEnabled()
+ public abstract boolean isTraceEnabled()
- public boolean isTraceEnabled()
Description:
Is trace logging currently enabled?
+ public boolean isTraceEnabled()
Description:
Is the logger instance enabled for the TRACE level?
Return Parameters:
- public abstract boolean isTraceEnabled()
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)
- public boolean isTraceEnabled()
Description:
Is trace logging currently enabled?
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
+ public void trace(String var1, Object var2, Object var3)
Description:
Log a message at the TRACE level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object)
+ public abstract void debug(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void debug(Marker var1, String var2, Object var3, Object var4)
Description:
This method is similar to debug(String, Object, Object) method except that the marker data is also taken into consideration.
Parameters:
- public abstract void debug(java.lang.Object)
+ public abstract void trace(java.lang.String)
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public abstract void debug(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object)
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String)
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public void debug(Marker var1, String var2, Object var3, Object var4)
Description:
This method is similar to debug(String, Object, Object) method except that the marker data is also taken into consideration.
Parameters:
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- protected org.apache.commons.logging.Log newInstance(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- protected Log newInstance(String name) throws LogConfigurationException
Description:
Create and return a new Log instance for the specified name.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object)
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract void error(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void error(java.lang.Object)
+ public abstract void error(java.lang.String)
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public abstract void error(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void error(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object, java.lang.Object)
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public void error(String var1, Object var2, Object var3)
Description:
Log a message at the ERROR level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void error(java.lang.Object)
- public abstract void fatal(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void fatal(Object message)
Description:
Log a message with fatal log level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object, java.lang.Object)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public void error(String var1, Object var2, Object var3)
Description:
Log a message at the ERROR level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public void error(Marker var1, String var2, Object var3, Object var4)
Description:
This method is similar to error(String, Object, Object) method except that the marker data is also taken into consideration.
Parameters:
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object, java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void error(String var1, Object var2, Object var3)
Description:
Log a message at the ERROR level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public abstract void fatal(java.lang.Object)
+ public abstract void error(java.lang.String)
- public void fatal(Object message)
Description:
Log a message with fatal log level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public abstract void fatal(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)
- public void fatal(Object message)
Description:
Log a message with fatal log level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void fatal(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object)
- public void fatal(Object message, Throwable exception)
Description:
Log a message and exception with fatal log level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public abstract void info(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object, java.lang.Object)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public void info(String var1, Object var2, Object var3)
Description:
Log a message at the INFO level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract void info(java.lang.Object)
- public abstract boolean isTraceEnabled()
+ public abstract void info(java.lang.String)
+ public abstract boolean isTraceEnabled()
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public boolean isTraceEnabled()
Description:
Is trace logging currently enabled?
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public boolean isTraceEnabled()
Description:
Is the logger instance enabled for the TRACE level?
Return Parameters:
- public abstract void info(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public abstract void info(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void info(java.lang.Object)
- public abstract void error(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public abstract void info(java.lang.String)
+ public abstract void debug(java.lang.String)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public abstract void info(java.lang.Object)
- public abstract void warn(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object)
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object, java.lang.Object)
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
+ public void info(String var1, Object var2, Object var3)
Description:
Log a message at the INFO level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public abstract void setAttribute(java.lang.String, java.lang.Object)
+ public abstract void info(java.lang.String)
- public void setAttribute(String name, Object value)
Description:
Set the configuration attribute with the specified name. Calling this with a null value is equivalent to calling removeAttribute(name).
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public abstract void setAttribute(java.lang.String, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public void setAttribute(String name, Object value)
Description:
Set the configuration attribute with the specified name. Calling this with a null value is equivalent to calling removeAttribute(name).
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String)
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object)
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
+ public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
+ public void trace(String var1, Object var2, Object var3)
Description:
Log a message at the TRACE level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void trace(java.lang.Object)
+ public abstract void trace(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
+ public void trace(Marker var1, String var2, Object var3, Object var4)
Description:
This method is similar to trace(String, Object, Object) method except that the marker data is also taken into consideration.
Parameters:
- public abstract void trace(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public void trace(String var1, Object var2, Object var3)
Description:
Log a message at the TRACE level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isTraceEnabled(org.slf4j.Marker)
+ public abstract void trace(java.lang.String, java.lang.Object)
- public void trace(Object message, Throwable exception)
Description:
Log a message and exception with trace log level.
Parameters:
+ public boolean isTraceEnabled(Marker var1)
Description:
Similar to isTraceEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String)
- public void trace(Object message, Throwable exception)
Description:
Log a message and exception with trace log level.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String, java.lang.Object)
- public void trace(Object message, Throwable exception)
Description:
Log a message and exception with trace log level.
Parameters:
+ public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)
- public void trace(Object message, Throwable exception)
Description:
Log a message and exception with trace log level.
Parameters:
+ public void trace(String var1, Object var2, Object var3)
Description:
Log a message at the TRACE level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public abstract void warn(java.lang.Object)
+ public abstract void trace(java.lang.String)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void warn(String var1, Object var2, Object var3)
Description:
Log a message at the WARN level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public abstract void warn(java.lang.Object)
+ public abstract void warn(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void warn(Marker var1, String var2, Object var3, Object var4)
Description:
This method is similar to warn(String, Object, Object) method except that the marker data is also taken into consideration.
Parameters:
- public abstract void warn(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public abstract void warn(java.lang.Object)
- public abstract void error(java.lang.Object)
+ public abstract void warn(java.lang.String)
+ public abstract void error(java.lang.String)
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String)
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public void warn(String var1, Object var2, Object var3)
Description:
Log a message at the WARN level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public abstract void warn(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public void warn(String var1, Object var2, Object var3)
Description:
Log a message at the WARN level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public java.lang.Object get(java.lang.Object)
+ public abstract java.lang.String get(java.lang.String)
- public Object get(Object key)
Description:
See Also: Hashtable
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public abstract void debug(java.lang.String)
- public Object put(Object key, Object value)
Description:
See Also: Hashtable
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)
- public Object put(Object key, Object value)
Description:
See Also: Hashtable
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)
- public Object put(Object key, Object value)
Description:
See Also: Hashtable
+ public static void put(String key, String val) throws IllegalArgumentException
Description:
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it. This method delegates all work to the MDC of the underlying logging system.
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public Object put(Object key, Object value)
Description:
See Also: Hashtable
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public org.apache.log.Logger getLogger()
+ public static java.lang.String arrayFormat(java.lang.String, java.lang.Object[])
- public Logger getLogger()
Description:
Return the native Logger instance we are using.
+ public static final FormattingTuple arrayFormat(String messagePattern, Object[] argArray)
Description:
Same principle as the format(String, Object) and format(String, Object, Object) methods except that any number of arguments can be passed in an array.
Parameters:
- public org.apache.log.Logger getLogger()
+ public static java.lang.String format(java.lang.String, java.lang.Object)
- public Logger getLogger()
Description:
Return the native Logger instance we are using.
+ public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
- public org.apache.log.Logger getLogger()
+ public static java.lang.String format(java.lang.String, java.lang.Object)
+ public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
- public Logger getLogger()
Description:
Return the native Logger instance we are using.
+ public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
+ public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
- public org.apache.log.Logger getLogger()
+ public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
- public Logger getLogger()
Description:
Return the native Logger instance we are using.
+ public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
+ public abstract org.slf4j.Logger getLogger(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
+ public Logger getLogger(String var1)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
+ public static org.slf4j.Logger getLogger(java.lang.Class>)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract boolean isDebugEnabled()
- public abstract void debug(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract boolean isDebugEnabled()
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract boolean isDebugEnabled()
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String)
+ public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract boolean isDebugEnabled()
- public abstract void error(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract boolean isDebugEnabled()
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public boolean isDebugEnabled()
Description:
Is debug logging currently enabled?
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- public abstract void info(java.lang.Object)
- public abstract void error(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void info(java.lang.String)
+ public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object)
- public abstract void info(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void info(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object)
- public abstract void info(java.lang.Object)
- public abstract void info(java.lang.Object, java.lang.Throwable)
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- public java.lang.Object get(java.lang.Object)
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void info(java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract java.lang.String get(java.lang.String)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- public Object get(Object key)
Description:
See Also: Hashtable
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object)
- public abstract void warn(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String)
+ public abstract void warn(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void info(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void info(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object)
- public java.lang.Object put(java.lang.Object, java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void put(java.lang.String, java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public Object put(Object key, Object value)
Description:
See Also: Hashtable
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public static void put(String key, String val) throws IllegalArgumentException
Description:
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it. This method delegates all work to the MDC of the underlying logging system.
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void add(org.slf4j.Marker)
+ public abstract boolean remove(org.slf4j.Marker)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void add(Marker var1)
Description:
Add a reference to another Marker.
Parameters:
+ public boolean remove(Marker var1)
Description:
Remove a marker reference.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message)
Description:
Log a message with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
- public abstract void info(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
+ public abstract void info(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object, java.lang.Throwable)
- public abstract void debug(java.lang.Object)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- protected void write(java.lang.StringBuffer)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- protected void write(StringBuffer buffer)
Description:
Write the content of the message accumulated in the specified StringBuffer to the appropriate output destination. The default implementation writes to System.err.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
+ public abstract void debug(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object)
- public abstract void debug(java.lang.Object)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
+ public abstract void debug(java.lang.String)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object)
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public abstract org.slf4j.Logger getLogger(java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
+ public Logger getLogger(String var1)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void info(java.lang.Object, java.lang.Throwable)
- public abstract void debug(java.lang.Object, java.lang.Throwable)
- public abstract void debug(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void info(Object message, Throwable exception)
Description:
Log a message and exception with info log level.
Parameters:
- public void debug(Object message, Throwable exception)
Description:
Log a message and exception with debug log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void trace(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isTraceEnabled(org.slf4j.Marker)
+ public abstract void trace(java.lang.String)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
- public void debug(Object message)
Description:
Log a message with debug log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isTraceEnabled(Marker var1)
Description:
Similar to isTraceEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void trace(java.lang.Object)
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean isTraceEnabled(org.slf4j.Marker)
+ public abstract void trace(java.lang.String)
+ public abstract void trace(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void trace(Object message)
Description:
Log a message with trace log level.
Parameters:
- public void trace(Object message, Throwable exception)
Description:
Log a message and exception with trace log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean isTraceEnabled(Marker var1)
Description:
Similar to isTraceEnabled() method except that the marker data is also taken into account.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
+ public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object)
- public abstract boolean isInfoEnabled()
- public abstract void info(java.lang.Object)
+ public abstract org.slf4j.Logger getLogger(java.lang.String)
+ public abstract void warn(java.lang.String)
+ public abstract boolean isInfoEnabled()
+ public abstract void info(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public boolean isInfoEnabled()
Description:
Is info logging currently enabled?
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public Logger getLogger(String var1)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public boolean isInfoEnabled()
Description:
Is the logger instance enabled for the INFO level?
Return Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object)
- public abstract void error(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void warn(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
- public void error(Object message, Throwable exception)
Description:
Log a message and exception with error log level.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public abstract void warn(java.lang.Object, java.lang.Throwable)
- public abstract void warn(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void warn(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public void warn(Object message, Throwable exception)
Description:
Log a message and exception with warn log level.
Parameters:
- public void warn(Object message)
Description:
Log a message with warn log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static org.apache.commons.logging.Log getLog(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
- public static org.apache.commons.logging.LogFactory getFactory() throws org.apache.commons.logging.LogConfigurationException
- public abstract void setAttribute(java.lang.String, java.lang.Object)
- public abstract void info(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
- public static Log getLog(String name) throws LogConfigurationException
Description:
Convenience method to return a named logger, without the application having to care about factories.
Parameters:
- public static LogFactory getFactory() throws LogConfigurationException
Description:
Construct (if necessary) and return a LogFactory instance, using the following ordered lookup procedure to determine the name of the implementation class to be loaded. The org.apache.commons.logging.LogFactory system property. The JDK 1.3 Service Discovery mechanism Use the properties file commons-logging.properties file, if found in the class path of this class. The configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above. Fall back to a default implementation class (org.apache.commons.logging.impl.LogFactoryImpl). NOTE - If the properties file method of identifying the LogFactory implementation class is utilized, all of the properties defined in this file will be set as configuration attributes on the corresponding LogFactory instance. NOTE - In a multithreaded environment it is possible that two different instances will be returned for the same classloader environment.
- public void setAttribute(String name, Object value)
Description:
Set the configuration attribute with the specified name. Calling this with a null value is equivalent to calling removeAttribute(name).
Parameters:
- public void info(Object message)
Description:
Log a message with info log level.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.LogFactory getFactory() throws org.apache.commons.logging.LogConfigurationException
+ public abstract void info(java.lang.String)
- public static LogFactory getFactory() throws LogConfigurationException
Description:
Construct (if necessary) and return a LogFactory instance, using the following ordered lookup procedure to determine the name of the implementation class to be loaded. The org.apache.commons.logging.LogFactory system property. The JDK 1.3 Service Discovery mechanism Use the properties file commons-logging.properties file, if found in the class path of this class. The configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above. Fall back to a default implementation class (org.apache.commons.logging.impl.LogFactoryImpl). NOTE - If the properties file method of identifying the LogFactory implementation class is utilized, all of the properties defined in this file will be set as configuration attributes on the corresponding LogFactory instance. NOTE - In a multithreaded environment it is possible that two different instances will be returned for the same classloader environment.
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static org.apache.commons.logging.LogFactory getFactory() throws org.apache.commons.logging.LogConfigurationException
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static LogFactory getFactory() throws LogConfigurationException
Description:
Construct (if necessary) and return a LogFactory instance, using the following ordered lookup procedure to determine the name of the implementation class to be loaded. The org.apache.commons.logging.LogFactory system property. The JDK 1.3 Service Discovery mechanism Use the properties file commons-logging.properties file, if found in the class path of this class. The configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above. Fall back to a default implementation class (org.apache.commons.logging.impl.LogFactoryImpl). NOTE - If the properties file method of identifying the LogFactory implementation class is utilized, all of the properties defined in this file will be set as configuration attributes on the corresponding LogFactory instance. NOTE - In a multithreaded environment it is possible that two different instances will be returned for the same classloader environment.
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public abstract boolean isEmpty()
+ public static void checkArgument(boolean)
- public boolean isEmpty()
Description:
Returns true if the multimap contains no key-value pairs.
+ public static void checkArgument(boolean expression)
Description:
Ensures the truth of an expression involving one or more parameters to the calling method.
Parameters:
- public abstract boolean put(K, V)
+ public abstract V put(K, V)
- public V put(K key, V value)
Description:
Specified by: put in interface java.util.Map<K,V>
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public abstract int size()
+ public abstract long size()
- public int size()
Description:
Returns the number of key-value pairs in the multimap.
+ public int size()
Description:
Specified by: size in interface Map<K,V>
- public abstract java.util.Collection get(K)
+ public abstract V getIfPresent(java.lang.Object)
- public SortedSet
Description:
Returns a collection view of all values associated with a key. If no mappings in the multimap have the provided key, an empty collection is returned. Changes to the returned collection will update the underlying multimap, and vice versa. The returned collection is not serializable.
Parameters:
- public abstract V get(java.lang.Object)
+ protected abstract E get(int)
- public Collection
Description:
Returns a collection view of all values associated with a key. If no mappings in the multimap have the provided key, an empty collection is returned. Changes to the returned collection will update the underlying multimap, and vice versa.
Parameters:
+ public E get(int index)
Description:
Specified by: get in interface List<E>
- public abstract V put(K, V)
+ public abstract V put(K, V)
- public V put(K key, V value)
Description:
Specified by: put in interface java.util.Map<K,V>
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public abstract void clear()
+ public abstract void invalidateAll()
- public void clear()
Description:
Removes all key-value pairs from the multimap.
- public java.lang.String join(java.util.Map, ?>)
+ public final java.lang.String join(java.lang.Object[])
- public String join(Map, ?> map)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
+ public final String join(Object[] parts)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
- public java.lang.String join(java.util.Map, ?>)
+ public static com.google.common.base.Joiner on(char)
- public String join(Map, ?> map)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
+ public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
- public static com.google.common.collect.TreeMultiset create(java.lang.Iterable extends E>)
+ public static com.google.common.collect.TreeMultiset create(java.lang.Iterable extends E>)
- public static HashMultiset
Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.
Parameters:
+ public static HashMultiset
Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.
Parameters:
- public static java.util.List sortedCopy(java.lang.Iterable)
+ public java.util.List sortedCopy(java.lang.Iterable)
- public static List
Description:
Returns a copy of the given iterable sorted by the natural ordering of its elements. The input is not modified. The returned list is modifiable, serializable, and implements RandomAccess. Unlike Sets.newTreeSet(Iterable), this method does not collapse equal elements, and the resulting collection does not maintain its own sort order.
Parameters:
+ public List
Description:
Returns a copy of the given iterable sorted by this ordering. The input is not modified. The returned list is modifiable, serializable, and has random access. Unlike Sets.newTreeSet(Iterable), this method does not discard elements that are duplicates according to the comparator. The sort performed is stable, meaning that such elements will appear in the resulting list in the same order they appeared in the input.
Parameters:
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator super E>, java.util.Iterator extends E>)
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by the given Comparator. When multiple elements are equivalent according to compare(), only the first one specified is included. This method iterates over elements at most once. Note: Despite what the method name suggests, if elements is an ImmutableSortedSet, it may be returned instead of a copy.
+ public ImmutableList
Description:
Returns this list instance.
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator super E>, java.util.Iterator extends E>)
- public static com.google.common.collect.ImmutableSortedSet of()
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by the given Comparator. When multiple elements are equivalent according to compare(), only the first one specified is included. This method iterates over elements at most once. Note: Despite what the method name suggests, if elements is an ImmutableSortedSet, it may be returned instead of a copy.
- public static ImmutableMultiset
Description:
Returns the empty immutable multiset.
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.of(2, 3, 1, 3) yields a multiset with elements in the order 2, 3, 3, 1.
+ public ImmutableList
Description:
Returns this list instance.
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator extends E>)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3)) yields a multiset with elements in the order 2, 3, 3, 1. Note that if c is a Collection<String>, then ImmutableMultiset.copyOf(c) returns an ImmutableMultiset<String> containing each of the strings in c, while ImmutableMultiset.of(c) returns an ImmutableMultiset<Collection<String>> containing one element (the given collection itself). Note: Despite what the method name suggests, if elements is an ImmutableMultiset, no copy will actually be performed, and the given multiset itself will be returned.
+ public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by their natural ordering. When multiple elements are equivalent according to Comparable.compareTo(T), only the first one specified is included.
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator extends E>)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])
+ public static T checkNotNull(T)
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3)) yields a multiset with elements in the order 2, 3, 3, 1. Note that if c is a Collection<String>, then ImmutableMultiset.copyOf(c) returns an ImmutableMultiset<String> containing each of the strings in c, while ImmutableMultiset.of(c) returns an ImmutableMultiset<Collection<String>> containing one element (the given collection itself). Note: Despite what the method name suggests, if elements is an ImmutableMultiset, no copy will actually be performed, and the given multiset itself will be returned.
+ public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by their natural ordering. When multiple elements are equivalent according to Comparable.compareTo(T), only the first one specified is included.
+ public static T checkNotNull(T reference)
Description:
Ensures that an object reference passed as a parameter to the calling method is not null.
Parameters:
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator extends E>)
+ public static T checkNotNull(T)
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3)) yields a multiset with elements in the order 2, 3, 3, 1. Note that if c is a Collection<String>, then ImmutableMultiset.copyOf(c) returns an ImmutableMultiset<String> containing each of the strings in c, while ImmutableMultiset.of(c) returns an ImmutableMultiset<Collection<String>> containing one element (the given collection itself). Note: Despite what the method name suggests, if elements is an ImmutableMultiset, no copy will actually be performed, and the given multiset itself will be returned.
+ public static T checkNotNull(T reference)
Description:
Ensures that an object reference passed as a parameter to the calling method is not null.
Parameters:
- public static com.google.common.collect.ImmutableSortedSet of()
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableMultiset
Description:
Returns the empty immutable multiset.
+ public ImmutableList
Description:
Returns this list instance.
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.of(2, 3, 1, 3) yields a multiset with elements in the order 2, 3, 3, 1.
+ public ImmutableList
Description:
Returns this list instance.
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator super E>)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable>, java.lang.Comparable>)
- public static List
Description:
Returns a copy of the given iterable sorted by an explicit comparator. The input is not modified. The returned list is modifiable, serializable, and implements RandomAccess. Unlike Sets.newTreeSet(Comparator, Iterable), this method does not collapse elements that the comparator treats as equal, and the resulting collection does not maintain its own sort order.
Parameters:
+ public int compare(Comparable left, Comparable right)
Description:
Specified by: compare in interface Comparator<T>
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator super E>)
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable>, java.lang.Comparable>)
- public static List
Description:
Returns a copy of the given iterable sorted by an explicit comparator. The input is not modified. The returned list is modifiable, serializable, and implements RandomAccess. Unlike Sets.newTreeSet(Comparator, Iterable), this method does not collapse elements that the comparator treats as equal, and the resulting collection does not maintain its own sort order.
Parameters:
- public static int compare(boolean a, boolean b)
Description:
Compares the two specified byte values. The sign of the value returned is the same as that of the value that would be returned by the call: Byte.valueOf(a).compareTo(Byte.valueOf(b))
Parameters:
+ public int compare(Comparable left, Comparable right)
Description:
Specified by: compare in interface Comparator<T>
- public static java.util.Set newConcurrentHashSet()
+ public static java.util.Set newSetFromMap(java.util.Map)
- public static Set
Description:
Creates a thread-safe set backed by a hash map. The set is backed by a ConcurrentHashMap instance, and thus carries the same concurrency guarantees. Unlike HashSet, this class does NOT allow null to be used as an element. The set is serializable.
Return Parameters:
+ public static Set
Description:
Returns a set backed by the specified map. The resulting set displays the same ordering, concurrency, and performance characteristics as the backing map. In essence, this factory method provides a Set implementation corresponding to any Map implementation. There is no need to use this method on a Map implementation that already has a corresponding Set implementation (such as HashMap or TreeMap). Each method invocation on the set returned by this method results in exactly one method invocation on the backing map or its keySet view, with one exception. The addAll method is implemented as a sequence of put invocations on the backing map. The specified map must be empty at the time this method is invoked, and should not be accessed directly after this method returns. These conditions are ensured if the map is created empty, passed directly to this method, and no reference to the map is retained, as illustrated in the following code fragment: Set<Object> identityHashSet = Sets.newSetFromMap(
new IdentityHashMap<Object, Boolean>()); This method has the same behavior as the JDK 6 method Collections.newSetFromMap(). The returned set is serializable if the backing map is.
Parameters:
- public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap extends K, ? extends V>)
+ public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap extends K, ? extends V>)
- public static HashMultiset
Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.
Parameters:
+ public static HashMultiset
Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.
Parameters:
- public static java.util.concurrent.ConcurrentHashMap newConcurrentHashMap()
+ public static java.util.concurrent.ConcurrentMap newConcurrentMap()
- public static java.util.HashMap newHashMap()
+ public abstract V put(K, V)
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public static java.util.HashMap newHashMap()
- public abstract boolean put(K, V)
+ public abstract V put(K, V)
- public V put(K key, V value)
Description:
Specified by: put in interface java.util.Map<K,V>
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()
- public static com.google.common.base.Joiner on(char)
+ public final java.lang.String join(java.lang.Object[])
- public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
+ public final String join(Object[] parts)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
- public static com.google.common.base.Joiner on(char)
+ public static com.google.common.base.Joiner on(char)
- public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
+ public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
- public static com.google.common.base.Joiner on(char)
- public java.lang.String join(java.util.Map, ?>)
+ public static com.google.common.base.Joiner on(char)
+ public final java.lang.String join(java.lang.Object[])
- public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
- public String join(Map, ?> map)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
+ public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
+ public final String join(Object[] parts)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable>, java.lang.Comparable>)
- public static int compare(boolean a, boolean b)
Description:
Compares the two specified byte values. The sign of the value returned is the same as that of the value that would be returned by the call: Byte.valueOf(a).compareTo(Byte.valueOf(b))
Parameters:
+ public int compare(Comparable left, Comparable right)
Description:
Specified by: compare in interface Comparator<T>
- public abstract org.slf4j.Logger getLogger(java.lang.String)
+ public abstract org.apache.log4j.Logger getLogger(java.lang.String)
- public Logger getLogger(String var1)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public Logger getLogger(String name)
Description:
Return a new logger instance named as the first parameter using the default factory. If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated and then linked with its existing ancestors as well as children.
Parameters:
- public abstract org.slf4j.Logger getLogger(java.lang.String)
+ public abstract org.apache.logging.log4j.Logger getLogger(java.lang.String)
- public Logger getLogger(String var1)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public Logger getLogger(String name)
Description:
Return a new logger instance named as the first parameter using the default factory. If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated and then linked with its existing ancestors as well as children.
Parameters:
- public abstract void debug(java.lang.String)
+ public static void debug(java.lang.String)
- public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public static void debug(String msg)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void debug(java.lang.String)
+ public void debug(java.lang.Object)
- public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void debug(Object message)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void debug(java.lang.String, java.lang.Object)
+ public static void debug(java.lang.String)
- public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public static void debug(String msg)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void debug(java.lang.String, java.lang.Object)
+ public void debug(java.lang.Object)
- public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void debug(Object message)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String)
- public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void error(String message)
Description:
Print a the error message passed as parameter on System.err.
- public abstract void error(java.lang.String)
+ public void debug(java.lang.Object)
- public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void debug(Object message)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void info(java.lang.String)
+ public static void debug(java.lang.String)
- public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public static void debug(String msg)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void info(java.lang.String)
+ public void info(java.lang.Object)
- public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void info(Object message)
Description:
Log a message object with the INFO Level. This method first checks if this category is INFO enabled by comparing the level of this category with INFO Level. If the category is INFO enabled, then it converts the message object passed as parameter to a string by invoking the appropriate ObjectRenderer. It proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the info(Object, Throwable) form instead.
Parameters:
- public abstract void info(java.lang.String)
- public abstract void debug(java.lang.String)
+ public void info(java.lang.Object)
+ public static void debug(java.lang.String)
- public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void info(Object message)
Description:
Log a message object with the INFO Level. This method first checks if this category is INFO enabled by comparing the level of this category with INFO Level. If the category is INFO enabled, then it converts the message object passed as parameter to a string by invoking the appropriate ObjectRenderer. It proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the info(Object, Throwable) form instead.
Parameters:
+ public static void debug(String msg)
Description:
Log a message object with the DEBUG level. This method first checks if this category is DEBUG enabled by comparing the level of this category with the DEBUG level. If this category is DEBUG enabled, then it converts the message object (passed as parameter) to a string by invoking the appropriate ObjectRenderer. It then proceeds to call all the registered appenders in this category and also higher in the hierarchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the debug(Object, Throwable) form instead.
Parameters:
- public abstract void trace(java.lang.String, java.lang.Object)
+ public void trace(java.lang.Object)
- public void trace(String var1, Object var2)
Description:
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.
Parameters:
+ public void trace(Object message)
Description:
Log a message object with the TRACE level.
Parameters:
- public abstract void warn(java.lang.String)
+ public static void warn(java.lang.String)
- public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public static void warn(String msg)
Description:
Log a message object with the WARN Level. This method first checks if this category is WARN enabled by comparing the level of this category with WARN Level. If the category is WARN enabled, then it converts the message object passed as parameter to a string by invoking the appropriate ObjectRenderer. It proceeds to call all the registered appenders in this category and also higher in the hieararchy depending on the value of the additivity flag. WARNING Note that passing a Throwable to this method will print the name of the Throwable but no stack trace. To print a stack trace use the warn(Object, Throwable) form instead.
Parameters:
- public static java.lang.String arrayFormat(java.lang.String, java.lang.Object[])
+ protected abstract org.apache.log4j.Logger getLogger()
- public static final FormattingTuple arrayFormat(String messagePattern, Object[] argArray)
Description:
Same principle as the format(String, Object) and format(String, Object, Object) methods except that any number of arguments can be passed in an array.
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
- public static java.lang.String arrayFormat(java.lang.String, java.lang.Object[])
+ protected abstract org.apache.log4j.Logger getLogger()
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple arrayFormat(String messagePattern, Object[] argArray)
Description:
Same principle as the format(String, Object) and format(String, Object, Object) methods except that any number of arguments can be passed in an array.
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static java.lang.String arrayFormat(java.lang.String, java.lang.Object[])
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple arrayFormat(String messagePattern, Object[] argArray)
Description:
Same principle as the format(String, Object) and format(String, Object, Object) methods except that any number of arguments can be passed in an array.
Parameters:
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object)
+ protected abstract org.apache.log4j.Logger getLogger()
- public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
- public static java.lang.String format(java.lang.String, java.lang.Object)
+ protected abstract org.apache.log4j.Logger getLogger()
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object)
+ public static void warn(java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
+ public static void warn(String msg, Throwable t)
Description:
Log a message with the WARN level including the stack trace of the Throwable t passed as parameter. See warn(Object) for more detailed information.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object)
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object)
- public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
+ protected abstract org.apache.log4j.Logger getLogger()
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
- public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object)
- public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
+ public static void warn(java.lang.String, java.lang.Throwable)
+ protected abstract org.apache.log4j.Logger getLogger()
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg)
Description:
Performs single argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}.", "there");
will return the string "Hi there.".
Parameters:
- public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
+ public static void warn(String msg, Throwable t)
Description:
Log a message with the WARN level including the stack trace of the Throwable t passed as parameter. See warn(Object) for more detailed information.
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
+ protected abstract org.apache.log4j.Logger getLogger()
- public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
+ protected Logger getLogger()
Description:
Specified by: getLogger in class AbstractDynamicMBean
- public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
+ public static void warn(java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
+ public static void warn(String msg, Throwable t)
Description:
Log a message with the WARN level including the stack trace of the Throwable t passed as parameter. See warn(Object) for more detailed information.
Parameters:
- public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
+ public void log(java.lang.String, org.apache.log4j.lf5.LogLevel, java.lang.String, java.lang.Throwable)
- public static final FormattingTuple format(String messagePattern, Object arg1, Object arg2)
Description:
Performs a two argument substitution for the 'messagePattern' passed as parameter. For example,
MessageFormatter.format("Hi {}. My name is {}.", "Alice", "Bob");
will return the string "Hi Alice. My name is Bob.".
Parameters:
+ public void log(String category, LogLevel level, String message, Throwable t)
Description:
Log a message to the Monitor.
Parameters:
- public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract org.apache.log4j.Logger getLogger(java.lang.String)
- public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public Logger getLogger(String name)
Description:
Return a new logger instance named as the first parameter using the default factory. If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated and then linked with its existing ancestors as well as children.
Parameters:
- public static org.slf4j.Logger getLogger(java.lang.Class>)
+ public abstract org.apache.log4j.Logger getLogger(java.lang.String)
- public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public Logger getLogger(String name)
Description:
Return a new logger instance named as the first parameter using the default factory. If a logger of that name already exists, then it will be returned. Otherwise, a new logger will be instantiated and then linked with its existing ancestors as well as children.
Parameters:
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T readValue(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public T readValue(JsonParser jp, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T readValue(org.codehaus.jackson.JsonNode, org.codehaus.jackson.type.JavaType) throws java.io.IOException, org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public abstract T readValue(JsonParser var1, Class
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public abstract com.google.gson.JsonElement serialize(T, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public JsonElement serialize(T var1, Type var2, JsonSerializationContext var3)
Description:
Gson invokes this call-back method during serialization when it encounters a field of the specified type. In the implementation of this call-back method, you should consider invoking JsonSerializationContext.serialize(Object, Type) method to create JsonElements for any non-trivial field of the src object. However, you should never invoke it on the src object itself since that will cause an infinite loop (Gson will call your call-back method again).
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public abstract com.google.gson.JsonElement serialize(T, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)
+ public void serialize(org.codehaus.jackson.JsonGenerator) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException
- public JsonElement serialize(T var1, Type var2, JsonSerializationContext var3)
Description:
Gson invokes this call-back method during serialization when it encounters a field of the specified type. In the implementation of this call-back method, you should consider invoking JsonSerializationContext.serialize(Object, Type) method to create JsonElements for any non-trivial field of the src object. However, you should never invoke it on the src object itself since that will cause an infinite loop (Gson will call your call-back method again).
Parameters:
+ public void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
Description:
Serialization method called when no additional type information is to be included in serialization.
- public abstract com.google.gson.JsonElement serialize(T, java.lang.reflect.Type, com.google.gson.JsonSerializationContext)
- public com.google.gson.JsonArray()
+ public void serialize(org.codehaus.jackson.JsonGenerator) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException
- public JsonElement serialize(T var1, Type var2, JsonSerializationContext var3)
Description:
Gson invokes this call-back method during serialization when it encounters a field of the specified type. In the implementation of this call-back method, you should consider invoking JsonSerializationContext.serialize(Object, Type) method to create JsonElements for any non-trivial field of the src object. However, you should never invoke it on the src object itself since that will cause an infinite loop (Gson will call your call-back method again).
Parameters:
+ public void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
Description:
Serialization method called when no additional type information is to be included in serialization.
- public com.google.gson.Gson create()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.Gson create()
- public final java.lang.String toJson(T) throws java.io.IOException
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- final String toJson(T value) throws IOException
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.Gson()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public com.google.gson.Gson()
+ public com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()
+ public ObjectWriter writerWithDefaultPrettyPrinter()
Description:
Factory method for constructing ObjectWriter that will serialize objects using the default pretty printer for indentation
- public com.google.gson.Gson()
+ public java.lang.String writeValueAsString(java.lang.Object) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.Gson()
+ public org.codehaus.jackson.map.ObjectMapper()
- public com.google.gson.Gson()
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.Gson()
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public T readValue(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public T readValue(JsonParser jp, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.Gson()
- public com.google.gson.GsonBuilder()
- public com.google.gson.GsonBuilder setPrettyPrinting()
- public com.google.gson.Gson create()
+ public com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public GsonBuilder setPrettyPrinting()
Description:
Configures Gson to output Json that fits in a page for pretty printing. This option only affects Json serialization.
Return Parameters:
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
+ public ObjectWriter writerWithDefaultPrettyPrinter()
Description:
Factory method for constructing ObjectWriter that will serialize objects using the default pretty printer for indentation
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.Gson()
- public java.lang.String toJson(com.google.gson.JsonElement)
+ public org.codehaus.jackson.map.ObjectMapper()
+ public java.lang.String writeValueAsString(java.lang.Object) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException
- public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.GsonBuilder serializeNulls()
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.node.ArrayNode add(byte[])
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
+ public ArrayNode add(byte[] v)
Description:
Method for adding specified node at the end of this array.
Return Parameters:
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.util.TokenBuffer append(com.fasterxml.jackson.databind.util.TokenBuffer) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.util.TokenBuffer$Segment append(int, com.fasterxml.jackson.core.JsonToken)
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
- public com.google.gson.GsonBuilder serializeNulls()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.GsonBuilder serializeNulls()
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.node.ArrayNode add(byte[])
+ public com.fasterxml.jackson.databind.util.TokenBuffer append(com.fasterxml.jackson.databind.util.TokenBuffer) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
+ public com.fasterxml.jackson.databind.util.TokenBuffer$Segment append(int, com.fasterxml.jackson.core.JsonToken)
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public ArrayNode add(byte[] v)
Description:
Method for adding specified node at the end of this array.
Return Parameters:
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
- public com.google.gson.GsonBuilder setDateFormat(int)
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public GsonBuilder setDateFormat(int style)
Description:
Configures Gson to serialize Date objects according to the pattern provided. You can call this method or setDateFormat(int) multiple times, but only the last invocation will be used to decide the serialization format. The date format will be used to serialize and deserialize Date, Timestamp and Date. Note that this pattern must abide by the convention provided by SimpleDateFormat class. See the documentation in SimpleDateFormat for more information on valid date and time patterns.
Parameters:
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.GsonBuilder setPrettyPrinting()
+ public com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()
- public GsonBuilder setPrettyPrinting()
Description:
Configures Gson to output Json that fits in a page for pretty printing. This option only affects Json serialization.
Return Parameters:
+ public ObjectWriter writerWithDefaultPrettyPrinter()
Description:
Factory method for constructing ObjectWriter that will serialize objects using the default pretty printer for indentation
- public com.google.gson.GsonBuilder setPrettyPrinting()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public GsonBuilder setPrettyPrinting()
Description:
Configures Gson to output Json that fits in a page for pretty printing. This option only affects Json serialization.
Return Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.GsonBuilder()
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.GsonBuilder()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public com.google.gson.GsonBuilder()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public com.google.gson.GsonBuilder()
- public com.google.gson.Gson create()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- public com.google.gson.GsonBuilder()
- public com.google.gson.Gson create()
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public com.fasterxml.jackson.databind.ObjectMapper setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude$Include)
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
+ public ObjectMapper setSerializationInclusion(JsonInclude.Include incl)
Description:
Method for setting defalt POJO property inclusion strategy for serialization.
- public com.google.gson.GsonBuilder()
- public com.google.gson.Gson create()
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T readValue(org.codehaus.jackson.JsonNode, org.codehaus.jackson.type.JavaType) throws java.io.IOException, org.codehaus.jackson.JsonParseException, org.codehaus.jackson.map.JsonMappingException
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public abstract T readValue(JsonParser var1, Class
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.GsonBuilder()
- public com.google.gson.GsonBuilder serializeNulls()
- public com.google.gson.Gson create()
- public void add(com.google.gson.JsonElement)
- public java.lang.String toJson(com.google.gson.JsonElement)
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public com.fasterxml.jackson.databind.node.ArrayNode add(byte[])
+ public com.fasterxml.jackson.databind.util.TokenBuffer append(com.fasterxml.jackson.databind.util.TokenBuffer) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
+ public com.fasterxml.jackson.databind.util.TokenBuffer$Segment append(int, com.fasterxml.jackson.core.JsonToken)
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public GsonBuilder serializeNulls()
Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.
Return Parameters:
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public ArrayNode add(byte[] v)
Description:
Method for adding specified node at the end of this array.
Return Parameters:
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.GsonBuilder()
- public com.google.gson.GsonBuilder setDateFormat(int)
- public com.google.gson.Gson create()
- public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public GsonBuilder setDateFormat(int style)
Description:
Configures Gson to serialize Date objects according to the pattern provided. You can call this method or setDateFormat(int) multiple times, but only the last invocation will be used to decide the serialization format. The date format will be used to serialize and deserialize Date, Timestamp and Date. Note that this pattern must abide by the convention provided by SimpleDateFormat class. See the documentation in SimpleDateFormat for more information on valid date and time patterns.
Parameters:
- public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.JsonArray()
+ public void serialize(org.codehaus.jackson.JsonGenerator) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException
+ public void serialize(JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException
Description:
Serialization method called when no additional type information is to be included in serialization.
- public com.google.gson.JsonElement get(java.lang.String)
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)
- public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public JsonNode get(int index)
Description:
Method for accessing value of the specified element of an array node. For other nodes, null is always returned. For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than node.size(), null is returned; no exception is thrown for any index. NOTE: if the element value has been explicitly set as null (which is different from removal!), a NullNode will be returned, not null.
Return Parameters:
- public com.google.gson.JsonElement get(java.lang.String)
+ public abstract java.lang.String asText()
- public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public abstract String asText()
Description:
Method that will return a valid String representation of the container value, if the node is a value node (method isValueNode() returns true), otherwise empty String.
- public com.google.gson.JsonElement get(java.lang.String)
- public java.lang.String getAsString()
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)
+ public abstract java.lang.String asText()
- public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
+ public JsonNode get(int index)
Description:
Method for accessing value of the specified element of an array node. For other nodes, null is always returned. For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than node.size(), null is returned; no exception is thrown for any index. NOTE: if the element value has been explicitly set as null (which is different from removal!), a NullNode will be returned, not null.
Return Parameters:
+ public abstract String asText()
Description:
Method that will return a valid String representation of the container value, if the node is a value node (method isValueNode() returns true), otherwise empty String.
- public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public com.google.gson.JsonObject getAsJsonObject()
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)
- public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonNode get(int index)
Description:
Method for accessing value of the specified element of an array node. For other nodes, null is always returned. For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than node.size(), null is returned; no exception is thrown for any index. NOTE: if the element value has been explicitly set as null (which is different from removal!), a NullNode will be returned, not null.
Return Parameters:
- public com.google.gson.JsonObject getAsJsonObject()
+ public abstract java.lang.String asText()
- public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public abstract String asText()
Description:
Method that will return a valid String representation of the container value, if the node is a value node (method isValueNode() returns true), otherwise empty String.
- public com.google.gson.JsonObject getAsJsonObject()
+ public com.fasterxml.jackson.databind.JsonNode readTree(java.net.URL) throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
- public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonNode readTree(URL source) throws IOException, JsonProcessingException
Description:
Method to deserialize JSON content as tree expressed using set of JsonNode instances. Returns root of the resulting tree (where root can consist of just a single node if the current event is a value event, not container).
Parameters:
- public com.google.gson.JsonObject getAsJsonObject()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)
- public JsonObject getAsJsonObject(String memberName)
Description:
Convenience method to get the specified member as a JsonObject.
Parameters:
+ public JsonNode get(int index)
Description:
Method for accessing value of the specified element of an array node. For other nodes, null is always returned. For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than node.size(), null is returned; no exception is thrown for any index. NOTE: if the element value has been explicitly set as null (which is different from removal!), a NullNode will be returned, not null.
Return Parameters:
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.core.TreeNode createObjectNode()
+ public abstract TreeNode createObjectNode()
Description:
Method for construct root level Object nodes for Tree Model instances.
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.databind.node.ObjectNode put(java.lang.String, byte[])
+ public ObjectNode put(String fieldName, byte[] v)
Description:
Method for setting value of a field to specified numeric value.
Return Parameters:
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public com.fasterxml.jackson.core.TreeNode createObjectNode()
+ public abstract TreeNode createObjectNode()
Description:
Method for construct root level Object nodes for Tree Model instances.
- public com.google.gson.JsonObject()
- public void addProperty(java.lang.String, java.lang.Character)
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public com.fasterxml.jackson.core.TreeNode createObjectNode()
+ public com.fasterxml.jackson.databind.node.ObjectNode put(java.lang.String, byte[])
- public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
+ public abstract TreeNode createObjectNode()
Description:
Method for construct root level Object nodes for Tree Model instances.
+ public ObjectNode put(String fieldName, byte[] v)
Description:
Method for setting value of a field to specified numeric value.
Return Parameters:
- public com.google.gson.JsonParser()
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public com.google.gson.JsonParser()
- public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public com.google.gson.JsonParser()
- public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public com.google.gson.JsonParser()
- public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
- public com.google.gson.JsonObject getAsJsonObject()
- public com.google.gson.JsonElement get(java.lang.String)
- public java.lang.String getAsString()
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public com.fasterxml.jackson.databind.JsonNode readTree(java.net.URL) throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)
+ public abstract java.lang.String asText()
- public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
+ public JsonNode readTree(URL source) throws IOException, JsonProcessingException
Description:
Method to deserialize JSON content as tree expressed using set of JsonNode instances. Returns root of the resulting tree (where root can consist of just a single node if the current event is a value event, not container).
Parameters:
+ public JsonNode get(int index)
Description:
Method for accessing value of the specified element of an array node. For other nodes, null is always returned. For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than node.size(), null is returned; no exception is thrown for any index. NOTE: if the element value has been explicitly set as null (which is different from removal!), a NullNode will be returned, not null.
Return Parameters:
+ public abstract String asText()
Description:
Method that will return a valid String representation of the container value, if the node is a value node (method isValueNode() returns true), otherwise empty String.
- public final java.lang.String toJson(T) throws java.io.IOException
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- final String toJson(T value) throws IOException
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public java.lang.String getAsString()
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)
- public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
+ public JsonNode get(int index)
Description:
Method for accessing value of the specified element of an array node. For other nodes, null is always returned. For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than node.size(), null is returned; no exception is thrown for any index. NOTE: if the element value has been explicitly set as null (which is different from removal!), a NullNode will be returned, not null.
Return Parameters:
- public java.lang.String getAsString()
+ public abstract java.lang.String asText()
- public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
+ public abstract String asText()
Description:
Method that will return a valid String representation of the container value, if the node is a value node (method isValueNode() returns true), otherwise empty String.
- public java.lang.String getAsString()
+ public abstract java.lang.String getValue()
- public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
+ public final String getValue()
Description:
Returns unquoted String that this object represents (and offers serialized forms for)
- public java.lang.String toJson(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
+ public ObjectWriter writerWithDefaultPrettyPrinter()
Description:
Factory method for constructing ObjectWriter that will serialize objects using the default pretty printer for indentation
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public java.lang.String toJson(com.google.gson.JsonElement)
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public java.lang.String toJson(com.google.gson.JsonElement)
+ public java.lang.String writeValueAsString(java.lang.Object) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException
- public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public void add(com.google.gson.JsonElement)
+ public T readValue(byte[], com.fasterxml.jackson.databind.JavaType) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public T readValue(byte[] src, JavaType valueType) throws IOException, JsonParseException, JsonMappingException
Description:
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (like Boolean). Note: this method should NOT be used if the result type is a container (Collection or Map. The reason is that due to type erasure, key and value types can not be introspected when using this method.
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.node.ArrayNode add(byte[])
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public ArrayNode add(byte[] v)
Description:
Method for adding specified node at the end of this array.
Return Parameters:
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.ObjectMapper()
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.util.TokenBuffer append(com.fasterxml.jackson.databind.util.TokenBuffer) throws java.io.IOException, com.fasterxml.jackson.core.JsonGenerationException
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.util.TokenBuffer$Segment append(int, com.fasterxml.jackson.core.JsonToken)
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public Writer append(char c)
Description:
Specified by: append in interface Appendable Overrides: append in class Writer
- public void add(com.google.gson.JsonElement)
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException
- public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public String writeValueAsString(Object value) throws JsonProcessingException
Description:
Method that can be used to serialize any Java value as a String. Functionally equivalent to calling writeValue(Writer,Object) with StringWriter and constructing String, but more efficient. Note: prior to version 2.1, throws clause included IOException; 2.1 removed it.
- public void addProperty(java.lang.String, java.lang.Character)
+ public com.fasterxml.jackson.databind.node.ObjectNode put(java.lang.String, byte[])
- public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
+ public ObjectNode put(String fieldName, byte[] v)
Description:
Method for setting value of a field to specified numeric value.
Return Parameters:
- public boolean equals(java.lang.Object)
+ public abstract boolean equals(java.lang.Object)
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public boolean equals(Object var1)
Description:
Markers are considered equal if they have the same name.
Parameters:
- public boolean equals(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public boolean equals(java.lang.Object)
+ public abstract void warn(java.lang.String)
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public boolean equals(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public boolean equals(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean equals(java.lang.Object)
+ public abstract boolean isWarnEnabled(org.slf4j.Marker)
+ public abstract void warn(java.lang.String)
+ public abstract void debug(java.lang.String)
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean equals(Object var1)
Description:
Markers are considered equal if they have the same name.
Parameters:
+ public boolean isWarnEnabled(Marker var1)
Description:
Similar to isWarnEnabled() method except that the marker data is also taken into consideration.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public boolean equals(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract boolean equals(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public boolean equals(Object var1)
Description:
Markers are considered equal if they have the same name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public java.lang.Object get(int)
+ public abstract boolean isDebugEnabled()
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public java.lang.Object get(int)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- public java.lang.Object get(int)
+ public abstract java.lang.String get(java.lang.String)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
- public java.lang.Object get(int)
+ public abstract void debug(java.lang.String)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public java.lang.Object get(int)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public java.lang.Object get(int)
+ public abstract void error(java.lang.String)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public java.lang.Object get(int)
+ public abstract void info(java.lang.String)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public java.lang.Object get(int)
+ public abstract void info(java.lang.String, java.lang.Object)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public java.lang.Object get(int)
+ public abstract void warn(java.lang.String)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public java.lang.Object get(int)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract boolean equals(java.lang.Object)
+ public boolean equals(Object var1)
Description:
Markers are considered equal if they have the same name.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract boolean isDebugEnabled()
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void add(org.slf4j.Marker)
+ public void add(Marker var1)
Description:
Add a reference to another Marker.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void debug(java.lang.String)
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void error(java.lang.String)
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void info(java.lang.String)
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)
+ public static void put(String key, String val) throws IllegalArgumentException
Description:
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it. This method delegates all work to the MDC of the underlying logging system.
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void warn(java.lang.String)
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public java.lang.Object put(int, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public java.lang.String toString()
+ public abstract void trace(java.lang.String)
- public String toString()
Description:
Returns the String value of this mutable.
Return Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public java.lang.String toString()
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public String toString()
Description:
Returns the String value of this mutable.
Return Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public java.lang.String toString(java.lang.String)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)
- public String toString(String format)
Description:
Formats the receiver using the given format. This uses Formattable to perform the formatting. Two variables may be used to embed the left and right elements. Use %1$s for the left element (key) and %2$s for the right element (value). The default format used by toString() is (%1$s,%2$s).
Parameters:
+ public void warn(String var1, Object var2, Object var3)
Description:
Log a message at the WARN level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public org.apache.commons.lang.text.StrBuilder append(double)
+ public abstract void debug(java.lang.String)
- public HashCodeBuilder append(double value)
Description:
Append a hashCode for an Object.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public org.apache.commons.lang.text.StrBuilder append(double)
+ public abstract void error(java.lang.String)
- public HashCodeBuilder append(double value)
Description:
Append a hashCode for an Object.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public org.apache.commons.lang3.text.StrBuilder replaceAll(org.apache.commons.lang3.text.StrMatcher, java.lang.String)
+ public abstract void error(java.lang.String)
- public StrBuilder replaceAll(StrMatcher matcher, String replaceStr)
Description:
Replaces the search character with the replace character throughout the builder.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public org.apache.commons.lang3.text.StrBuilder replaceAll(org.apache.commons.lang3.text.StrMatcher, java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public StrBuilder replaceAll(StrMatcher matcher, String replaceStr)
Description:
Replaces the search character with the replace character throughout the builder.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public org.apache.commons.lang3.text.StrBuilder replaceAll(org.apache.commons.lang3.text.StrMatcher, java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void error(java.lang.String)
- public StrBuilder replaceAll(StrMatcher matcher, String replaceStr)
Description:
Replaces the search character with the replace character throughout the builder.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static boolean isBlank(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static boolean isBlank(CharSequence cs)
Description:
Checks if a CharSequence is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static boolean isEmpty(boolean[])
+ public abstract void trace(java.lang.String)
- public static boolean isEmpty(boolean[] array)
Description:
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public static boolean isEmpty(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static boolean isEmpty(boolean[] array)
Description:
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static boolean isEmpty(java.lang.CharSequence)
+ public abstract void info(java.lang.String, java.lang.Object)
- public static boolean isEmpty(CharSequence cs)
Description:
Checks if a CharSequence is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the CharSequence. That functionality is available in isBlank().
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static boolean isEmpty(java.lang.String)
+ public abstract void warn(java.lang.String)
- public static boolean isEmpty(String str)
Description:
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static boolean isEmpty(java.lang.String)
- public void add(java.lang.Object)
- public boolean equals(java.lang.Object)
- public java.lang.Object put(int, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
+ public abstract void info(java.lang.String)
+ public abstract void debug(java.lang.String)
+ public abstract void error(java.lang.String)
+ public abstract void warn(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void add(org.slf4j.Marker)
+ public abstract boolean isDebugEnabled()
+ public abstract boolean equals(java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)
- public static boolean isEmpty(String str)
Description:
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
Parameters:
- public void add(Object obj)
Description:
Adds a value.
Parameters:
- public boolean equals(Object obj)
Description:
Compares this object against the specified object. The result is true if and only if the argument is not null and is a MutableByte object that contains the same byte value as this object.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void add(Marker var1)
Description:
Add a reference to another Marker.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public boolean equals(Object var1)
Description:
Markers are considered equal if they have the same name.
Parameters:
+ public static void put(String key, String val) throws IllegalArgumentException
Description:
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it. This method delegates all work to the MDC of the underlying logging system.
- public static boolean isNotBlank(java.lang.CharSequence)
+ public abstract void debug(java.lang.String)
- public static boolean isNotBlank(CharSequence cs)
Description:
Checks if a CharSequence is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static boolean isNotBlank(java.lang.CharSequence)
+ public abstract void warn(java.lang.String)
- public static boolean isNotBlank(CharSequence cs)
Description:
Checks if a CharSequence is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static boolean isNotBlank(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static boolean isNotBlank(CharSequence cs)
Description:
Checks if a CharSequence is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static boolean isNotBlank(java.lang.CharSequence)
- public static boolean isNumeric(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void warn(java.lang.String)
+ public abstract void debug(java.lang.String)
- public static boolean isNotBlank(CharSequence cs)
Description:
Checks if a CharSequence is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
- public static boolean isNumeric(CharSequence cs)
Description:
Checks if the CharSequence contains only Unicode digits. A decimal point is not a Unicode digit and returns false. null will return false. An empty CharSequence (length()=0) will return false.
StringUtils.isNumeric(null) = false
StringUtils.isNumeric("") = false
StringUtils.isNumeric(" ") = false
StringUtils.isNumeric("123") = true
StringUtils.isNumeric("12 3") = false
StringUtils.isNumeric("ab2c") = false
StringUtils.isNumeric("12-3") = false
StringUtils.isNumeric("12.3") = false
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static boolean isNotBlank(java.lang.String)
+ public abstract void debug(java.lang.String)
- public static boolean isNotBlank(String str)
Description:
Checks if a String is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static boolean isNotBlank(java.lang.String)
+ public abstract void error(java.lang.String)
- public static boolean isNotBlank(String str)
Description:
Checks if a String is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static boolean isNotBlank(java.lang.String)
- public org.apache.commons.lang.text.StrBuilder append(double)
+ public abstract void error(java.lang.String)
+ public abstract void debug(java.lang.String)
- public static boolean isNotBlank(String str)
Description:
Checks if a String is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
Parameters:
- public HashCodeBuilder append(double value)
Description:
Append a hashCode for an Object.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static boolean isNumeric(java.lang.CharSequence)
+ public abstract void debug(java.lang.String)
- public static boolean isNumeric(CharSequence cs)
Description:
Checks if the CharSequence contains only Unicode digits. A decimal point is not a Unicode digit and returns false. null will return false. An empty CharSequence (length()=0) will return false.
StringUtils.isNumeric(null) = false
StringUtils.isNumeric("") = false
StringUtils.isNumeric(" ") = false
StringUtils.isNumeric("123") = true
StringUtils.isNumeric("12 3") = false
StringUtils.isNumeric("ab2c") = false
StringUtils.isNumeric("12-3") = false
StringUtils.isNumeric("12.3") = false
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static boolean isNumeric(java.lang.CharSequence)
+ public abstract void warn(java.lang.String)
- public static boolean isNumeric(CharSequence cs)
Description:
Checks if the CharSequence contains only Unicode digits. A decimal point is not a Unicode digit and returns false. null will return false. An empty CharSequence (length()=0) will return false.
StringUtils.isNumeric(null) = false
StringUtils.isNumeric("") = false
StringUtils.isNumeric(" ") = false
StringUtils.isNumeric("123") = true
StringUtils.isNumeric("12 3") = false
StringUtils.isNumeric("ab2c") = false
StringUtils.isNumeric("12-3") = false
StringUtils.isNumeric("12.3") = false
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static boolean isNumeric(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static boolean isNumeric(CharSequence cs)
Description:
Checks if the CharSequence contains only Unicode digits. A decimal point is not a Unicode digit and returns false. null will return false. An empty CharSequence (length()=0) will return false.
StringUtils.isNumeric(null) = false
StringUtils.isNumeric("") = false
StringUtils.isNumeric(" ") = false
StringUtils.isNumeric("123") = true
StringUtils.isNumeric("12 3") = false
StringUtils.isNumeric("ab2c") = false
StringUtils.isNumeric("12-3") = false
StringUtils.isNumeric("12.3") = false
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static boolean[] add(boolean[] array, int index, boolean element)
Description:
Inserts the specified element at the specified position in the array. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). This method returns a new array with the same elements of the input array plus the given element on the specified position. The component type of the returned array is always the same as that of the input array. If the input array is null, a new one element array is returned whose component type is the same as the element.
ArrayUtils.add(null, 0, true) = [true]
ArrayUtils.add([true], 0, false) = [false, true]
ArrayUtils.add([false], 1, true) = [false, true]
ArrayUtils.add([true, false], 1, true) = [true, true, false]
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static boolean[] add(boolean[] array, int index, boolean element)
Description:
Inserts the specified element at the specified position in the array. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). This method returns a new array with the same elements of the input array plus the given element on the specified position. The component type of the returned array is always the same as that of the input array. If the input array is null, a new one element array is returned whose component type is the same as the element.
ArrayUtils.add(null, 0, true) = [true]
ArrayUtils.add([true], 0, false) = [false, true]
ArrayUtils.add([false], 1, true) = [false, true]
ArrayUtils.add([true, false], 1, true) = [true, true, false]
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void info(java.lang.String, java.lang.Object)
- public static boolean[] add(boolean[] array, int index, boolean element)
Description:
Inserts the specified element at the specified position in the array. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). This method returns a new array with the same elements of the input array plus the given element on the specified position. The component type of the returned array is always the same as that of the input array. If the input array is null, a new one element array is returned whose component type is the same as the element.
ArrayUtils.add(null, 0, true) = [true]
ArrayUtils.add([true], 0, false) = [false, true]
ArrayUtils.add([false], 1, true) = [false, true]
ArrayUtils.add([true, false], 1, true) = [true, true, false]
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void warn(java.lang.String, java.lang.Object)
- public static boolean[] add(boolean[] array, int index, boolean element)
Description:
Inserts the specified element at the specified position in the array. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). This method returns a new array with the same elements of the input array plus the given element on the specified position. The component type of the returned array is always the same as that of the input array. If the input array is null, a new one element array is returned whose component type is the same as the element.
ArrayUtils.add(null, 0, true) = [true]
ArrayUtils.add([true], 0, false) = [false, true]
ArrayUtils.add([false], 1, true) = [false, true]
ArrayUtils.add([true, false], 1, true) = [true, true, false]
Parameters:
+ public void warn(String var1, Object var2)
Description:
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.
Parameters:
- public static boolean[] clone(boolean[])
+ public abstract void trace(java.lang.String)
- public static boolean[] clone(boolean[] array)
Description:
Clones an array returning a typecast result and handling null. This method returns null if null array input.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public static boolean[] clone(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static boolean[] clone(boolean[] array)
Description:
Clones an array returning a typecast result and handling null. This method returns null if null array input.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static boolean[] clone(boolean[])
- public static boolean isBlank(java.lang.CharSequence)
- public static boolean isEmpty(boolean[])
- public java.lang.String toString()
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void trace(java.lang.String)
- public static boolean[] clone(boolean[] array)
Description:
Clones an array returning a typecast result and handling null. This method returns null if null array input.
Parameters:
- public static boolean isBlank(CharSequence cs)
Description:
Checks if a CharSequence is whitespace, empty ("") or null.
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
Parameters:
- public static boolean isEmpty(boolean[] array)
Description:
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
Parameters:
- public String toString()
Description:
Returns the String value of this mutable.
Return Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public static boolean[] clone(boolean[])
- public static boolean isEmpty(boolean[])
- public java.lang.String toString()
+ public abstract void trace(java.lang.String)
- public static boolean[] clone(boolean[] array)
Description:
Clones an array returning a typecast result and handling null. This method returns null if null array input.
Parameters:
- public static boolean isEmpty(boolean[] array)
Description:
Checks if a String is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
NOTE: This method changed in Lang version 2.0. It no longer trims the String. That functionality is available in isBlank().
Parameters:
- public String toString()
Description:
Returns the String value of this mutable.
Return Parameters:
+ public void trace(String var1)
Description:
Log a message at the TRACE level.
Parameters:
- public static java.lang.String getSimpleName(java.lang.Class>)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static String getSimpleName(Class> cls)
Description:
Null-safe version of aClass.getSimpleName()
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract boolean isDebugEnabled()
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract java.lang.String get(java.lang.String)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void debug(java.lang.String)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void error(java.lang.String)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void info(java.lang.String)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void warn(java.lang.String)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
- public static java.lang.String[] stripAll(java.lang.String[])
- public static java.lang.String[] split(java.lang.String)
- public java.lang.Object get(int)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void info(java.lang.String)
+ public abstract void debug(java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)
+ public abstract void error(java.lang.String)
+ public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String, java.lang.Object)
+ public abstract void warn(java.lang.String)
+ public abstract java.lang.String get(java.lang.String)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- public static String replaceChars(String str, String searchChars, String replaceChars)
Description:
Replaces all occurrences of a character in a String with another. This is a null-safe version of String.replace(char, char). A null string input returns null. An empty ("") string input returns an empty string.
StringUtils.replaceChars(null, *, *) = null
StringUtils.replaceChars("", *, *) = ""
StringUtils.replaceChars("abcba", 'b', 'y') = "aycya"
StringUtils.replaceChars("abcba", 'z', 'y') = "abcba"
Parameters:
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
- public T get() throws ConcurrentException
Description:
Returns the object managed by this initializer. The object is created if it is not available yet and stored internally. This method always returns the same object.
Return Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- public static java.lang.String toString(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public static String toString(Object array)
Description:
Outputs an array as a String, treating null as an empty array. Multi-dimensional arrays are handled correctly, including multi-dimensional primitive arrays. The format is that of Java source code, for example {a,b}.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static java.lang.String toString(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static String toString(Object array)
Description:
Outputs an array as a String, treating null as an empty array. Multi-dimensional arrays are handled correctly, including multi-dimensional primitive arrays. The format is that of Java source code, for example {a,b}.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract boolean isDebugEnabled()
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract java.lang.String get(java.lang.String)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract void debug(java.lang.String)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract void error(java.lang.String)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract void info(java.lang.String)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public abstract void warn(java.lang.String)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static java.lang.String[] split(java.lang.String)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static String[] split(String str)
Description:
Splits the provided text into an array, using whitespace as the separator. Whitespace is defined by Character.isWhitespace(char). The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null) = null
StringUtils.split("") = []
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split("abc def") = ["abc", "def"]
StringUtils.split(" abc ") = ["abc"]
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static java.lang.String[] split(java.lang.String, java.lang.String)
+ public abstract java.util.Iterator iterator()
- public static String[] split(String str, String separatorChars)
Description:
Splits the provided text into an array, separator specified. This is an alternative to using StringTokenizer. The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null, *) = null
StringUtils.split("", *) = []
StringUtils.split("a.b.c", '.') = ["a", "b", "c"]
StringUtils.split("a..b.c", '.') = ["a", "b", "c"]
StringUtils.split("a:b:c", '.') = ["a:b:c"]
StringUtils.split("a b c", ' ') = ["a", "b", "c"]
Parameters:
+ public Iterator iterator()
Description:
Returns an Iterator which can be used to iterate over the references of this marker. An empty iterator is returned when this marker has no references.
Return Parameters:
- public static java.lang.String[] split(java.lang.String, java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
- public static String[] split(String str, String separatorChars)
Description:
Splits the provided text into an array, separator specified. This is an alternative to using StringTokenizer. The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null, *) = null
StringUtils.split("", *) = []
StringUtils.split("a.b.c", '.') = ["a", "b", "c"]
StringUtils.split("a..b.c", '.') = ["a", "b", "c"]
StringUtils.split("a:b:c", '.') = ["a:b:c"]
StringUtils.split("a b c", ' ') = ["a", "b", "c"]
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public static java.lang.String[] split(java.lang.String, java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract java.util.Iterator iterator()
- public static String[] split(String str, String separatorChars)
Description:
Splits the provided text into an array, separator specified. This is an alternative to using StringTokenizer. The separator is not included in the returned String array. Adjacent separators are treated as one separator. For more control over the split use the StrTokenizer class. A null input String returns null.
StringUtils.split(null, *) = null
StringUtils.split("", *) = []
StringUtils.split("a.b.c", '.') = ["a", "b", "c"]
StringUtils.split("a..b.c", '.') = ["a", "b", "c"]
StringUtils.split("a:b:c", '.') = ["a:b:c"]
StringUtils.split("a b c", ' ') = ["a", "b", "c"]
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public Iterator iterator()
Description:
Returns an Iterator which can be used to iterate over the references of this marker. An empty iterator is returned when this marker has no references.
Return Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract boolean isDebugEnabled()
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public boolean isDebugEnabled(Marker var1)
Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract java.lang.String get(java.lang.String)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public static String get(String key) throws IllegalArgumentException
Description:
Get the context identified by the key parameter. The key parameter cannot be null. This method delegates all work to the MDC of the underlying logging system.
Return Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void debug(java.lang.String)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void error(java.lang.String)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void info(java.lang.String)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void info(java.lang.String, java.lang.Object)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public void info(String var1, Object var2)
Description:
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void warn(java.lang.String)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public static java.lang.String[] stripAll(java.lang.String[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static String[] stripAll(String[] strs)
Description:
Strips whitespace from the start and end of every String in an array. Whitespace is defined by Character.isWhitespace(char). A new array is returned each time, except for length zero. A null array will return null. An empty array will return itself. A null array entry will be ignored.
StringUtils.stripAll(null) = null
StringUtils.stripAll([]) = []
StringUtils.stripAll(["abc", " abc"]) = ["abc", "abc"]
StringUtils.stripAll(["abc ", null]) = ["abc", null]
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static void reverse(boolean[])
+ public abstract void debug(java.lang.String)
- public static void reverse(boolean[] array)
Description:
Reverses the order of the given array. There is no special handling for multi-dimensional arrays. This method does nothing if null array input.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public static void reverse(boolean[])
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static void reverse(boolean[] array)
Description:
Reverses the order of the given array. There is no special handling for multi-dimensional arrays. This method does nothing if null array input.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static void reverse(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public static void reverse(boolean[] array)
Description:
Reverses the order of the given array. There is no special handling for multi-dimensional arrays. This method does nothing if null array input.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public static void reverse(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static void reverse(boolean[] array)
Description:
Reverses the order of the given array. There is no special handling for multi-dimensional arrays. This method does nothing if null array input.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public static void reverse(boolean[])
- public static java.lang.String toString(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)
- public static void reverse(boolean[] array)
Description:
Reverses the order of the given array. There is no special handling for multi-dimensional arrays. This method does nothing if null array input.
Parameters:
- public static String toString(Object array)
Description:
Outputs an array as a String, treating null as an empty array. Multi-dimensional arrays are handled correctly, including multi-dimensional primitive arrays. The format is that of Java source code, for example {a,b}.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
+ public void debug(String var1, Object var2)
Description:
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public void add(java.lang.Object)
+ public abstract boolean equals(java.lang.Object)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public boolean equals(Object var1)
Description:
Markers are considered equal if they have the same name.
Parameters:
- public void add(java.lang.Object)
+ public abstract boolean isDebugEnabled()
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
- public void add(java.lang.Object)
+ public abstract void add(org.slf4j.Marker)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void add(Marker var1)
Description:
Add a reference to another Marker.
Parameters:
- public void add(java.lang.Object)
+ public abstract void debug(java.lang.String)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void debug(String var1)
Description:
Log a message at the DEBUG level.
Parameters:
- public void add(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
- public void add(java.lang.Object)
+ public abstract void error(java.lang.String)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
- public void add(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
- public void add(java.lang.Object)
+ public abstract void info(java.lang.String)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
- public void add(java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public static void put(String key, String val) throws IllegalArgumentException
Description:
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it. This method delegates all work to the MDC of the underlying logging system.
- public void add(java.lang.Object)
+ public abstract void warn(java.lang.String)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void warn(String var1)
Description:
Log a message at the WARN level.
Parameters:
- public void add(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public static Logger getLogger(Class clazz)
Description:
Return an appropriate Logger instance as specified by the name parameter. If the name parameter is equal to Logger.ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned. Null-valued name arguments are considered invalid. Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.
Parameters:
- public void add(java.lang.Object)
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)
+ public abstract void info(java.lang.String)
+ public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)
+ public abstract void add(org.slf4j.Marker)
+ public abstract boolean isDebugEnabled()
+ public abstract void put(java.lang.String, java.lang.String)
- public void add(Object obj)
Description:
Adds a value.
Parameters:
+ public void debug(String var1, Object var2, Object var3)
Description:
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.
Parameters:
+ public void info(String var1)
Description:
Log a message at the INFO level.
Parameters:
+ public void error(String var1)
Description:
Log a message at the ERROR level.
Parameters:
+ public void error(String var1, Object var2)
Description:
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.
Parameters:
+ public void add(Marker var1)
Description:
Add a reference to another Marker.
Parameters:
+ public boolean isDebugEnabled()
Description:
Is the logger instance enabled for the DEBUG level?
Return Parameters:
+ public static void put(String key, String val) throws IllegalArgumentException
Description:
Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it. This method delegates all work to the MDC of the underlying logging system.
- public boolean has(java.lang.String)
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public boolean has(String key)
Description:
Determine if the JSONObject contains a specific key.
Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public boolean has(java.lang.String)
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
- public boolean has(String key)
Description:
Determine if the JSONObject contains a specific key.
Parameters:
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public boolean has(java.lang.String)
+ public com.google.gson.JsonObject getAsJsonObject()
- public boolean has(String key)
Description:
Determine if the JSONObject contains a specific key.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public int getInt(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
- public int getInt(String key) throws JSONException
Description:
Get the int value associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public int getInt(java.lang.String) throws org.json.JSONException
+ public int getAsInt()
- public int getInt(String key) throws JSONException
Description:
Get the int value associated with an index.
Parameters:
+ public int getAsInt()
Description:
convenience method to get this array as an integer if it contains a single element.
Return Parameters:
- public int getInt(java.lang.String) throws org.json.JSONException
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public com.google.gson.JsonObject getAsJsonObject()
- public int getInt(String key) throws JSONException
Description:
Get the int value associated with an index.
Parameters:
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public int getInt(java.lang.String) throws org.json.JSONException
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public int getAsInt()
+ public java.lang.String getAsString()
- public int getInt(String key) throws JSONException
Description:
Get the int value associated with an index.
Parameters:
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public int getAsInt()
Description:
convenience method to get this array as an integer if it contains a single element.
Return Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public int length()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public int length()
Description:
Get the number of keys stored in the JSONObject.
Return Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public int length()
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
- public int length()
Description:
Get the number of keys stored in the JSONObject.
Return Parameters:
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public int length()
+ public com.google.gson.JsonObject getAsJsonObject()
- public int length()
Description:
Get the number of keys stored in the JSONObject.
Return Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public java.io.Writer write(java.io.Writer) throws org.json.JSONException
+ public void toJson(com.google.gson.JsonElement, com.google.gson.stream.JsonWriter) throws com.google.gson.JsonIOException
- public Writer write(Writer writer) throws JSONException
Description:
Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. Warning: This method assumes that the data structure is acyclical.
Return Parameters:
+ public void toJson(JsonElement jsonElement, JsonWriter writer) throws JsonIOException
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type, Appendable) instead.
Parameters:
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException
- public Object get(String key) throws JSONException
Description:
Get the object value associated with an index.
Parameters:
+ public JsonElement get(int i)
Description:
Returns the ith element of the array.
Parameters:
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonArray getAsJsonArray()
- public Object get(String key) throws JSONException
Description:
Get the object value associated with an index.
Parameters:
+ public JsonArray getAsJsonArray()
Description:
convenience method to get this element as a JsonArray. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.
Return Parameters:
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
- public Object get(String key) throws JSONException
Description:
Get the object value associated with an index.
Parameters:
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonParser()
- public Object get(String key) throws JSONException
Description:
Get the object value associated with an index.
Parameters:
- public java.lang.Object nextValue() throws org.json.JSONException
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException
- public Object nextValue() throws JSONException
Description:
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
Return Parameters:
+ public JsonElement get(int i)
Description:
Returns the ith element of the array.
Parameters:
- public java.lang.Object nextValue() throws org.json.JSONException
+ public com.google.gson.JsonArray getAsJsonArray()
- public Object nextValue() throws JSONException
Description:
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
Return Parameters:
+ public JsonArray getAsJsonArray()
Description:
convenience method to get this element as a JsonArray. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.
Return Parameters:
- public java.lang.Object nextValue() throws org.json.JSONException
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
- public Object nextValue() throws JSONException
Description:
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
Return Parameters:
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public java.lang.Object nextValue() throws org.json.JSONException
+ public com.google.gson.JsonParser()
- public Object nextValue() throws JSONException
Description:
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
Return Parameters:
- public java.lang.Object parse(java.io.Reader) throws java.io.IOException, org.json.simple.parser.ParseException
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public static Object parse(Reader in)
Description:
Parse JSON text into java object from the input source. Please use parseWithException() if you don't want to ignore the exception.
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public java.lang.String get(int)
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public String get(int i)
Description:
??? i - 0-based ???
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public java.lang.String get(int)
+ public com.google.gson.JsonElement get(java.lang.String)
- public String get(int i)
Description:
??? i - 0-based ???
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public java.lang.String get(int)
+ public com.google.gson.JsonObject getAsJsonObject()
+ public com.google.gson.JsonElement get(java.lang.String)
+ public java.lang.String toString()
- public String get(int i)
Description:
??? i - 0-based ???
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public String toString()
Description:
Returns a String representation of this element.
- public java.lang.String get(int)
- public java.lang.String toString()
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
+ public com.google.gson.JsonElement get(java.lang.String)
+ public java.lang.String getAsString()
- public String get(int i)
Description:
??? i - 0-based ???
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonObject getAsJsonObject(String memberName)
Description:
Convenience method to get the specified member as a JsonObject.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public java.lang.String getAsString()
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public java.lang.String getAsString()
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String toJSONString()
+ public java.lang.String toString()
- public String toJSONString()
Description:
???? ?? JSONAware ?? toJSONString
+ public String toString()
Description:
Returns a String representation of this element.
- public java.lang.String toString()
+ public com.google.gson.Gson()
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
- public java.lang.String toString()
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
+ public java.lang.String getAsString()
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonObject getAsJsonObject(String memberName)
Description:
Convenience method to get the specified member as a JsonObject.
Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String toString()
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public java.lang.String toString(int) throws org.json.JSONException
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public String toString(int indentFactor) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public java.lang.String toString(java.lang.String)
+ public V put(K, V)
- public static String toString(JSONObject o) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
- public java.lang.String toString(java.lang.String)
+ public void add(com.google.gson.JsonElement)
- public static String toString(JSONObject o) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public long getLong(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
- public long getLong(String key) throws JSONException
Description:
Get the long value associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public long getLong(java.lang.String) throws org.json.JSONException
+ public long getAsLong()
- public long getLong(String key) throws JSONException
Description:
Get the long value associated with an index.
Parameters:
+ public long getAsLong()
Description:
convenience method to get this array as a long if it contains a single element.
Return Parameters:
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonArray getAsJsonArray()
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
+ public JsonArray getAsJsonArray()
Description:
convenience method to get this element as a JsonArray. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.
Return Parameters:
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public com.google.gson.JsonArray getAsJsonArray()
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public JsonArray getAsJsonArray()
Description:
convenience method to get this element as a JsonArray. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.
Return Parameters:
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONArray put(int, java.lang.Object) throws org.json.JSONException
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public JSONObject put(String key, Collection value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONArray put(int, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
- public JSONObject put(String key, Collection value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public org.json.JSONArray put(int, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONObject put(String key, Collection value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONArray()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONArray()
+ public com.google.gson.Gson()
- public org.json.JSONArray()
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public org.json.JSONArray()
+ public com.google.gson.JsonObject getAsJsonObject()
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONException(java.lang.Throwable)
+ public com.google.gson.JsonElement get(java.lang.String)
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.JSONException(java.lang.Throwable)
+ public long getAsLong()
+ public long getAsLong()
Description:
convenience method to get this array as a long if it contains a single element.
Return Parameters:
- public org.json.JSONException(java.lang.Throwable)
- public long getLong(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public long getAsLong()
- public long getLong(String key) throws JSONException
Description:
Get the long value associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public long getAsLong()
Description:
convenience method to get this array as a long if it contains a single element.
Return Parameters:
- public org.json.JSONObject accumulate(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.Gson()
- public JSONObject accumulate(String key, Object value) throws JSONException
Description:
Accumulate values under a key. It is similar to the put method except that if there is already an object stored under the key then a JSONArray is stored under the key to hold all of the accumulated values. If there is already a JSONArray, then the new value is appended to it. In contrast, the put method replaces the previous value.
Parameters:
- public org.json.JSONObject getJSONObject(int) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.JSONObject getJSONObject(int) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject getJSONObject(int) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject getJSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject getJSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject getJSONObject(java.lang.String) throws org.json.JSONException
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)
+ public com.google.gson.JsonObject getAsJsonObject()
+ public java.lang.String getAsString()
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.Gson()
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public org.json.JSONObject()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONObject()
+ public com.google.gson.Gson()
- public org.json.JSONObject()
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
- public org.json.JSONObject()
+ public com.google.gson.JsonObject getAsJsonObject()
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject()
+ public com.google.gson.JsonObject()
- public org.json.JSONObject()
+ public java.lang.String toJson(com.google.gson.JsonElement)
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public org.json.JSONObject()
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
- public java.lang.String toString(int) throws org.json.JSONException
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public String toString(int indentFactor) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public org.json.JSONObject()
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
- public org.json.JSONArray()
- public org.json.JSONArray put(int, java.lang.Object) throws org.json.JSONException
- public boolean has(java.lang.String)
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
- public int length()
- public org.json.JSONObject getJSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)
+ public com.google.gson.JsonObject getAsJsonObject()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public JSONObject put(String key, Collection value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public boolean has(String key)
Description:
Determine if the JSONObject contains a specific key.
Parameters:
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
- public int length()
Description:
Get the number of keys stored in the JSONObject.
Return Parameters:
- public JSONObject getJSONObject(String key) throws JSONException
Description:
Get the JSONObject associated with an index.
Parameters:
+ public JsonElement toJsonTree(Object src, Type typeOfSrc)
Description:
This method serializes the specified object, including those of generic types, into its equivalent representation as a tree of JsonElements. This method must be used if the specified object is a generic type. For non-generic objects, use toJsonTree(Object) instead.
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONObject()
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
- public org.json.JSONArray()
- public org.json.JSONArray put(int, java.lang.Object) throws org.json.JSONException
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
- public int length()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public JSONObject put(String key, Collection value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public String getString(String key) throws JSONException
Description:
Get the string associated with an index.
Parameters:
- public JSONArray getJSONArray(String key) throws JSONException
Description:
Get the JSONArray associated with an index.
Parameters:
- public int length()
Description:
Get the number of keys stored in the JSONObject.
Return Parameters:
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.JSONObject()
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
- public org.json.JSONObject accumulate(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.Gson()
- public JSONObject put(String key, Object value) throws JSONException
Description:
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
Parameters:
- public JSONObject accumulate(String key, Object value) throws JSONException
Description:
Accumulate values under a key. It is similar to the put method except that if there is already an object stored under the key then a JSONArray is stored under the key to hold all of the accumulated values. If there is already a JSONArray, then the new value is appended to it. In contrast, the put method replaces the previous value.
Parameters:
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.Gson()
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonParser()
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public final java.lang.String toJson(T) throws java.io.IOException
+ final String toJson(T value) throws IOException
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
- public java.lang.String toString()
+ public com.google.gson.Gson()
+ public final java.lang.String toJson(T) throws java.io.IOException
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ final String toJson(T value) throws IOException
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public org.json.JSONTokener(java.lang.String)
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException
+ public JsonElement get(int i)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.JSONTokener(java.lang.String)
+ public com.google.gson.JsonArray getAsJsonArray()
+ public JsonArray getAsJsonArray()
Description:
convenience method to get this element as a JsonArray. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.
Return Parameters:
- public org.json.JSONTokener(java.lang.String)
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public org.json.JSONTokener(java.lang.String)
+ public com.google.gson.JsonParser()
- public org.json.JSONTokener(java.lang.String)
- public java.lang.Object nextValue() throws org.json.JSONException
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonArray getAsJsonArray()
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException
- public Object nextValue() throws JSONException
Description:
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
Return Parameters:
- public Object get(String key) throws JSONException
Description:
Get the object value associated with an index.
Parameters:
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonArray getAsJsonArray()
Description:
convenience method to get this element as a JsonArray. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonArray() first.
Return Parameters:
+ public JsonElement get(int i)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonArray()
- public org.json.simple.JSONObject()
+ public com.google.gson.GsonBuilder()
+ public com.google.gson.GsonBuilder registerTypeAdapter(java.lang.reflect.Type, java.lang.Object)
+ public com.google.gson.Gson create()
+ public GsonBuilder registerTypeAdapter(Type type, Object typeAdapter)
Description:
Configures Gson for custom serialization or deserialization. This method combines the registration of an TypeAdapter, InstanceCreator, JsonSerializer, and a JsonDeserializer. It is best used when a single object typeAdapter implements all the required interfaces for custom serialization with Gson. If a type adapter was previously registered for the specified type, it is overwritten.
Parameters:
+ public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- public org.json.simple.JSONObject()
+ public com.google.gson.JsonObject()
- public org.json.simple.JSONObject()
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public void add(java.lang.String, com.google.gson.JsonElement)
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public org.json.simple.JSONObject()
+ public V put(K, V)
- public org.json.simple.JSONObject()
- public java.lang.String get(int)
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public com.google.gson.JsonElement get(java.lang.String)
- public String get(int i)
Description:
??? i - 0-based ???
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.simple.JSONObject()
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonObject()
+ public com.google.gson.JsonArray()
- public org.json.simple.JSONObject()
- public org.json.simple.JSONArray()
- public java.lang.String toString(java.lang.String)
- public void add(java.lang.String)
+ public V put(K, V)
+ public void add(com.google.gson.JsonElement)
- public static String toString(JSONObject o) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public org.json.simple.JSONObject()
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.JsonObject()
+ public void add(java.lang.String, com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public org.json.simple.parser.JSONParser()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject getAsJsonObject()
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonParser()
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public org.json.simple.parser.JSONParser()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.Gson()
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.JsonObject()
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
- public static java.lang.String toJSONString(java.lang.Object)
+ public void add(java.lang.String, com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public void add(int, java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public void add(java.lang.String)
+ public V put(K, V)
+ public java.lang.String toJson(com.google.gson.JsonElement)
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(java.lang.String, com.google.gson.JsonElement)
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public void add(java.lang.String)
+ public void add(java.lang.String, com.google.gson.JsonElement)
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public java.lang.String get(int)
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
- public String get(int i)
Description:
??? i - 0-based ???
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public java.lang.String get(int)
+ public com.google.gson.JsonElement get(java.lang.String)
- public String get(int i)
Description:
??? i - 0-based ???
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public java.lang.String get(int)
+ public com.google.gson.JsonObject getAsJsonObject()
+ public com.google.gson.JsonElement get(java.lang.String)
+ public java.lang.String toString()
- public String get(int i)
Description:
??? i - 0-based ???
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public String toString()
Description:
Returns a String representation of this element.
- public java.lang.String get(int)
- public java.lang.String toString()
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
+ public com.google.gson.JsonElement get(java.lang.String)
+ public java.lang.String getAsString()
- public String get(int i)
Description:
??? i - 0-based ???
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonObject getAsJsonObject(String memberName)
Description:
Convenience method to get the specified member as a JsonObject.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String toJSONString()
+ public java.lang.String toString()
- public String toJSONString()
Description:
???? ?? JSONAware ?? toJSONString
+ public String toString()
Description:
Returns a String representation of this element.
- public java.lang.String toString()
+ public com.google.gson.JsonElement get(java.lang.String)
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public java.lang.String toString()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
- public java.lang.String toString()
+ public com.google.gson.JsonObject getAsJsonObject()
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
- public java.lang.String toString()
+ public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public JsonObject getAsJsonObject(String memberName)
Description:
Convenience method to get the specified member as a JsonObject.
Parameters:
- public java.lang.String toString()
+ public com.google.gson.JsonParser()
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
- public java.lang.String toString()
+ public com.google.gson.JsonParser()
+ public com.google.gson.JsonElement parse(com.google.gson.stream.JsonReader) throws com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
+ public com.google.gson.JsonObject getAsJsonObject()
+ public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
+ public java.lang.String getAsString()
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public static JsonElement parse(JsonReader reader) throws JsonParseException
Description:
Parses the specified JSON string into a parse tree
Parameters:
+ public JsonObject getAsJsonObject()
Description:
convenience method to get this element as a JsonObject. If the element is of some other type, a ClassCastException will result. Hence it is best to use this method after ensuring that this element is of the desired type by calling isJsonObject() first.
Return Parameters:
+ public JsonObject getAsJsonObject(String memberName)
Description:
Convenience method to get the specified member as a JsonObject.
Parameters:
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String toString()
+ public java.lang.String getAsString()
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public String getAsString()
Description:
convenience method to get this array as a String if it contains a single element.
Return Parameters:
- public java.lang.String toString()
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public String toString()
Description:
??? ? java.util.AbstractCollection ?? toString
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public java.lang.String toString(java.lang.String)
+ public V put(K, V)
- public static String toString(JSONObject o) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
- public java.lang.String toString(java.lang.String)
+ public void add(com.google.gson.JsonElement)
- public static String toString(JSONObject o) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonArray()
- public org.json.simple.JSONObject()
+ public com.google.gson.GsonBuilder()
+ public com.google.gson.GsonBuilder registerTypeAdapter(java.lang.reflect.Type, java.lang.Object)
+ public com.google.gson.Gson create()
+ public GsonBuilder registerTypeAdapter(Type type, Object typeAdapter)
Description:
Configures Gson for custom serialization or deserialization. This method combines the registration of an TypeAdapter, InstanceCreator, JsonSerializer, and a JsonDeserializer. It is best used when a single object typeAdapter implements all the required interfaces for custom serialization with Gson. If a type adapter was previously registered for the specified type, it is overwritten.
Parameters:
+ public Gson create()
Description:
Creates a Gson instance based on the current configuration. This method is free of side-effects to this GsonBuilder instance and hence can be called multiple times.
Return Parameters:
- public org.json.simple.JSONObject()
+ public com.google.gson.JsonObject()
- public org.json.simple.JSONObject()
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public void add(java.lang.String, com.google.gson.JsonElement)
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public org.json.simple.JSONObject()
+ public V put(K, V)
- public org.json.simple.JSONObject()
- public java.lang.String get(int)
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public com.google.gson.JsonElement get(java.lang.String)
- public String get(int i)
Description:
??? i - 0-based ???
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
+ public JsonElement get(String memberName)
Description:
Returns the ith element of the array.
Parameters:
- public org.json.simple.JSONObject()
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonObject()
+ public com.google.gson.JsonArray()
- public org.json.simple.JSONObject()
- public org.json.simple.JSONArray()
- public java.lang.String toString(java.lang.String)
- public void add(java.lang.String)
+ public V put(K, V)
+ public void add(com.google.gson.JsonElement)
- public static String toString(JSONObject o) throws JSONException
Description:
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
Parameters:
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public org.json.simple.JSONObject()
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.JsonObject()
+ public void add(java.lang.String, com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public org.json.simple.parser.JSONParser()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException
+ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException
Description:
This method deserializes the specified Json into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desired type is a generic type. Note that this method works fine if the any of the fields of the specified object are generics, just the object itself should not be a generic type. For the cases when the object is of generic type, invoke fromJson(String, Type). If you have the Json in a Reader instead of a String, use fromJson(Reader, Class) instead.
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
- public org.json.simple.parser.JSONParser()
+ public void addProperty(java.lang.String, java.lang.Character)
+ public void addProperty(String property, Character value)
Description:
Convenience method to add a primitive member. The specified value is converted to a JsonPrimitive of String.
Parameters:
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.Gson()
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.JsonObject()
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
- public static java.lang.String toJSONString(java.lang.Object)
+ public java.lang.String toJson(com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public static java.lang.String toJSONString(java.lang.Object)
+ public void add(java.lang.String, com.google.gson.JsonElement)
- public static String toJSONString(Object value)
Description:
Convert a list to JSON text. The result is a JSON array. If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public void add(java.lang.String)
+ public V put(K, V)
+ public java.lang.String toJson(com.google.gson.JsonElement)
+ public String toJson(JsonElement jsonElement)
Description:
This method serializes the specified object into its equivalent Json representation. This method should be used when the specified object is not a generic type. This method uses Object.getClass() to get the type for the specified object, but the getClass() loses the generic type information because of the Type Erasure feature of Java. Note that this method works fine if the any of the object fields are of generic type, just the object itself should not be of a generic type. If the object is of generic type, use toJson(Object, Type) instead. If you want to write out the object to a Writer, use toJson(Object, Appendable) instead.
Parameters:
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(java.lang.String, com.google.gson.JsonElement)
+ public void add(JsonElement element)
Description:
Adds the specified element to self.
Parameters:
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public void add(java.lang.String)
+ public void add(java.lang.String, com.google.gson.JsonElement)
+ public void add(String property, JsonElement value)
Description:
Adds a member, which is a name-value pair, to self. The name must be a String, but the value can be an arbitrary JsonElement, thereby allowing you to build a full tree of JsonElements rooted at this node.
Parameters:
- public abstract boolean isEmpty()
+ public static void checkArgument(boolean)
- public boolean isEmpty()
Description:
Returns true if the multimap contains no key-value pairs.
+ public static void checkArgument(boolean expression)
Description:
Ensures the truth of an expression involving one or more parameters to the calling method.
Parameters:
- public abstract boolean put(K, V)
+ public abstract V put(K, V)
- public V put(K key, V value)
Description:
Specified by: put in interface java.util.Map<K,V>
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public abstract int size()
+ public abstract long size()
- public int size()
Description:
Returns the number of key-value pairs in the multimap.
+ public int size()
Description:
Specified by: size in interface Map<K,V>
- public abstract java.util.Collection get(K)
+ public abstract V getIfPresent(java.lang.Object)
- public SortedSet
Description:
Returns a collection view of all values associated with a key. If no mappings in the multimap have the provided key, an empty collection is returned. Changes to the returned collection will update the underlying multimap, and vice versa. The returned collection is not serializable.
Parameters:
- public abstract V get(java.lang.Object)
+ protected abstract E get(int)
- public Collection
Description:
Returns a collection view of all values associated with a key. If no mappings in the multimap have the provided key, an empty collection is returned. Changes to the returned collection will update the underlying multimap, and vice versa.
Parameters:
+ public E get(int index)
Description:
Specified by: get in interface List<E>
- public abstract V put(K, V)
+ public abstract V put(K, V)
- public V put(K key, V value)
Description:
Specified by: put in interface java.util.Map<K,V>
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public abstract void clear()
+ public abstract void invalidateAll()
- public void clear()
Description:
Removes all key-value pairs from the multimap.
- public java.lang.String join(java.util.Map, ?>)
+ public final java.lang.String join(java.lang.Object[])
- public String join(Map, ?> map)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
+ public final String join(Object[] parts)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
- public java.lang.String join(java.util.Map, ?>)
+ public static com.google.common.base.Joiner on(char)
- public String join(Map, ?> map)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
+ public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
- public static com.google.common.collect.TreeMultiset create(java.lang.Iterable extends E>)
+ public static com.google.common.collect.TreeMultiset create(java.lang.Iterable extends E>)
- public static HashMultiset
Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.
Parameters:
+ public static HashMultiset
Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.
Parameters:
- public static java.util.List sortedCopy(java.lang.Iterable)
+ public java.util.List sortedCopy(java.lang.Iterable)
- public static List
Description:
Returns a copy of the given iterable sorted by the natural ordering of its elements. The input is not modified. The returned list is modifiable, serializable, and implements RandomAccess. Unlike Sets.newTreeSet(Iterable), this method does not collapse equal elements, and the resulting collection does not maintain its own sort order.
Parameters:
+ public List
Description:
Returns a copy of the given iterable sorted by this ordering. The input is not modified. The returned list is modifiable, serializable, and has random access. Unlike Sets.newTreeSet(Iterable), this method does not discard elements that are duplicates according to the comparator. The sort performed is stable, meaning that such elements will appear in the resulting list in the same order they appeared in the input.
Parameters:
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator super E>, java.util.Iterator extends E>)
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by the given Comparator. When multiple elements are equivalent according to compare(), only the first one specified is included. This method iterates over elements at most once. Note: Despite what the method name suggests, if elements is an ImmutableSortedSet, it may be returned instead of a copy.
+ public ImmutableList
Description:
Returns this list instance.
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator super E>, java.util.Iterator extends E>)
- public static com.google.common.collect.ImmutableSortedSet of()
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by the given Comparator. When multiple elements are equivalent according to compare(), only the first one specified is included. This method iterates over elements at most once. Note: Despite what the method name suggests, if elements is an ImmutableSortedSet, it may be returned instead of a copy.
- public static ImmutableMultiset
Description:
Returns the empty immutable multiset.
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.of(2, 3, 1, 3) yields a multiset with elements in the order 2, 3, 3, 1.
+ public ImmutableList
Description:
Returns this list instance.
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator extends E>)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3)) yields a multiset with elements in the order 2, 3, 3, 1. Note that if c is a Collection<String>, then ImmutableMultiset.copyOf(c) returns an ImmutableMultiset<String> containing each of the strings in c, while ImmutableMultiset.of(c) returns an ImmutableMultiset<Collection<String>> containing one element (the given collection itself). Note: Despite what the method name suggests, if elements is an ImmutableMultiset, no copy will actually be performed, and the given multiset itself will be returned.
+ public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by their natural ordering. When multiple elements are equivalent according to Comparable.compareTo(T), only the first one specified is included.
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator extends E>)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])
+ public static T checkNotNull(T)
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3)) yields a multiset with elements in the order 2, 3, 3, 1. Note that if c is a Collection<String>, then ImmutableMultiset.copyOf(c) returns an ImmutableMultiset<String> containing each of the strings in c, while ImmutableMultiset.of(c) returns an ImmutableMultiset<Collection<String>> containing one element (the given collection itself). Note: Despite what the method name suggests, if elements is an ImmutableMultiset, no copy will actually be performed, and the given multiset itself will be returned.
+ public static ImmutableSortedSet
Description:
Returns an immutable sorted set containing the given elements sorted by their natural ordering. When multiple elements are equivalent according to Comparable.compareTo(T), only the first one specified is included.
+ public static T checkNotNull(T reference)
Description:
Ensures that an object reference passed as a parameter to the calling method is not null.
Parameters:
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator extends E>)
+ public static T checkNotNull(T)
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3)) yields a multiset with elements in the order 2, 3, 3, 1. Note that if c is a Collection<String>, then ImmutableMultiset.copyOf(c) returns an ImmutableMultiset<String> containing each of the strings in c, while ImmutableMultiset.of(c) returns an ImmutableMultiset<Collection<String>> containing one element (the given collection itself). Note: Despite what the method name suggests, if elements is an ImmutableMultiset, no copy will actually be performed, and the given multiset itself will be returned.
+ public static T checkNotNull(T reference)
Description:
Ensures that an object reference passed as a parameter to the calling method is not null.
Parameters:
- public static com.google.common.collect.ImmutableSortedSet of()
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableMultiset
Description:
Returns the empty immutable multiset.
+ public ImmutableList
Description:
Returns this list instance.
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()
- public static ImmutableMultiset
Description:
Returns an immutable multiset containing the given elements. The multiset is ordered by the first occurrence of each element. For example, ImmutableMultiset.of(2, 3, 1, 3) yields a multiset with elements in the order 2, 3, 3, 1.
+ public ImmutableList
Description:
Returns this list instance.
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator super E>)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable>, java.lang.Comparable>)
- public static List
Description:
Returns a copy of the given iterable sorted by an explicit comparator. The input is not modified. The returned list is modifiable, serializable, and implements RandomAccess. Unlike Sets.newTreeSet(Comparator, Iterable), this method does not collapse elements that the comparator treats as equal, and the resulting collection does not maintain its own sort order.
Parameters:
+ public int compare(Comparable left, Comparable right)
Description:
Specified by: compare in interface Comparator<T>
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator super E>)
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable>, java.lang.Comparable>)
- public static List
Description:
Returns a copy of the given iterable sorted by an explicit comparator. The input is not modified. The returned list is modifiable, serializable, and implements RandomAccess. Unlike Sets.newTreeSet(Comparator, Iterable), this method does not collapse elements that the comparator treats as equal, and the resulting collection does not maintain its own sort order.
Parameters:
- public static int compare(boolean a, boolean b)
Description:
Compares the two specified byte values. The sign of the value returned is the same as that of the value that would be returned by the call: Byte.valueOf(a).compareTo(Byte.valueOf(b))
Parameters:
+ public int compare(Comparable left, Comparable right)
Description:
Specified by: compare in interface Comparator<T>
- public static java.util.Set newConcurrentHashSet()
+ public static java.util.Set newSetFromMap(java.util.Map)
- public static Set
Description:
Creates a thread-safe set backed by a hash map. The set is backed by a ConcurrentHashMap instance, and thus carries the same concurrency guarantees. Unlike HashSet, this class does NOT allow null to be used as an element. The set is serializable.
Return Parameters:
+ public static Set
Description:
Returns a set backed by the specified map. The resulting set displays the same ordering, concurrency, and performance characteristics as the backing map. In essence, this factory method provides a Set implementation corresponding to any Map implementation. There is no need to use this method on a Map implementation that already has a corresponding Set implementation (such as HashMap or TreeMap). Each method invocation on the set returned by this method results in exactly one method invocation on the backing map or its keySet view, with one exception. The addAll method is implemented as a sequence of put invocations on the backing map. The specified map must be empty at the time this method is invoked, and should not be accessed directly after this method returns. These conditions are ensured if the map is created empty, passed directly to this method, and no reference to the map is retained, as illustrated in the following code fragment: Set<Object> identityHashSet = Sets.newSetFromMap(
new IdentityHashMap<Object, Boolean>()); This method has the same behavior as the JDK 6 method Collections.newSetFromMap(). The returned set is serializable if the backing map is.
Parameters:
- public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap extends K, ? extends V>)
+ public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap extends K, ? extends V>)
- public static HashMultiset
Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.
Parameters:
+ public static HashMultiset
Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.
Parameters:
- public static java.util.concurrent.ConcurrentHashMap newConcurrentHashMap()
+ public static java.util.concurrent.ConcurrentMap newConcurrentMap()
- public static java.util.HashMap newHashMap()
+ public abstract V put(K, V)
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public static java.util.HashMap newHashMap()
- public abstract boolean put(K, V)
+ public abstract V put(K, V)
- public V put(K key, V value)
Description:
Specified by: put in interface java.util.Map<K,V>
+ public V put(K key, V value)
Description:
Specified by: put in interface Map<K,V>
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()
- public static com.google.common.base.Joiner on(char)
+ public final java.lang.String join(java.lang.Object[])
- public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
+ public final String join(Object[] parts)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
- public static com.google.common.base.Joiner on(char)
+ public static com.google.common.base.Joiner on(char)
- public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
+ public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
- public static com.google.common.base.Joiner on(char)
- public java.lang.String join(java.util.Map, ?>)
+ public static com.google.common.base.Joiner on(char)
+ public final java.lang.String join(java.lang.Object[])
- public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
- public String join(Map, ?> map)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
+ public static Joiner on(char separator)
Description:
Returns a joiner which automatically places separator between consecutive elements.
+ public final String join(Object[] parts)
Description:
Returns a string containing the string representation of each of parts, using the previously configured separator between each.
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable>, java.lang.Comparable>)
- public static int compare(boolean a, boolean b)
Description:
Compares the two specified byte values. The sign of the value returned is the same as that of the value that would be returned by the call: Byte.valueOf(a).compareTo(Byte.valueOf(b))
Parameters:
+ public int compare(Comparable left, Comparable right)
Description:
Specified by: compare in interface Comparator<T>