List Of Detected Library Migrations, Code fragments, method documentation that generated by APIMapper.


Migration Rule easymock <==> mockito
Method Mapping
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
+ public abstract T when(T)





Documentation

- public static IMockBuilder createMockBuilder(Class toMock)

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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
+ public abstract org.mockito.stubbing.OngoingStubbing thenCallRealMethod()





Documentation

- public static IMockBuilder createMockBuilder(Class toMock)

Description:
Create a mock builder allowing to create a partial mock for the given class or interface.


+ public OngoingStubbing thenCallRealMethod()

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:

  • iOngoingStubbing object that allows stubbing consecutive calls






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IMockBuilder createMockBuilder(Class toMock)

Description:
Create a mock builder allowing to create a partial mock for the given class or interface.


- public IMockBuilder addMockedMethod(Method var1)

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:

  • method - method to be mocked


- public T createStrictMock()

Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.

Return Parameters:

  • the newly created mock


+ public Stubber doCallRealMethod()

Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()

Return Parameters:

  • stubber - to select a method for stubbing


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public org.easymock.classextension.IMockBuilder createMockBuilder(java.lang.Class)
- public abstract T createStrictMock()
+ public abstract T when(T)





Documentation

- public static IMockBuilder createMockBuilder(Class toMock)

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:

  • the newly created mock


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public static IMockBuilder createMockBuilder(Class toMock)

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:

  • the newly created mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenCallRealMethod()

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:

  • iOngoingStubbing object that allows stubbing consecutive calls


+ public OngoingStubbing thenAnswer(Answer answer)

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:

  • answer - the custom answer to execute.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IMockBuilder createMockBuilder(Class toMock)

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:

  • the newly created mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenCallRealMethod()

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:

  • iOngoingStubbing object that allows stubbing consecutive calls


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)





Documentation

- public static T createMock(Class toMock)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(java.lang.Class)
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract T when(T)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract T when(T)





Documentation

+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract java.lang.Object get(java.lang.Object, java.lang.Object)




- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)




- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object get(java.lang.Object, java.lang.Object)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.classextension.IMockBuilder addMockedMethod(java.lang.reflect.Method)
+ public abstract T when(T)





Documentation

- public IMockBuilder addMockedMethod(Method var1)

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:

  • method - method to be mocked


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.classextension.IMockBuilder addMockedMethod(java.lang.reflect.Method)
+ public static org.mockito.stubbing.Stubber doCallRealMethod()





Documentation

- public IMockBuilder addMockedMethod(Method var1)

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:

  • method - method to be mocked


+ public Stubber doCallRealMethod()

Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()

Return Parameters:

  • stubber - to select a method for stubbing






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IMockBuilder addMockedMethod(Method var1)

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:

  • method - method to be mocked


+ public Stubber doCallRealMethod()

Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()

Return Parameters:

  • stubber - to select a method for stubbing


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ 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





Documentation

- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer)





Documentation

- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract T given(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static org.mockito.ArgumentCaptor forClass(java.lang.Class)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static ArgumentCaptor forClass(Class clazz)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public abstract void replay()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenAnswer(Answer answer)

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:

  • answer - the custom answer to execute.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andReturn(T)
- public static void replay(java.lang.Object...)
+ public static T verify(T, org.mockito.verification.VerificationMode)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - to be verified
  • mode - for example times(x) or atLeastOnce()






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract T when(T)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.BDDMockito$BDDStubber willThrow(java.lang.Throwable...)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ public static BDDStubber willThrow(Throwable toBeThrown)

Description:
See original Stubber.doThrow(Throwable)






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters andThrow(java.lang.Throwable)
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Throwable...)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T when(T)





Documentation

- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters anyTimes()
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public abstract T when(T)





Documentation

- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters atLeastOnce()
+ public java.util.ListIterator iterator(int)





Documentation

- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters once()
+ public abstract T when(T)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters once()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters once()
+ public org.mockito.asm.ByteVector putInt(int)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters once()
- public boolean get(int)
+ public boolean get(int)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters once()
- public static void replay(java.lang.Object...)
+ public org.mockito.asm.ByteVector putInt(int)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract T when(T)





Documentation

- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T answer() throws java.lang.Throwable
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

- 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:

  • the value to be returned


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(java.lang.String, org.easymock.classextension.IMocksControl)
+ public T mock(java.lang.Class, org.mockito.MockSettings)





Documentation

- public T createMock(String var1, IMocksControl var2)

Description:
Create named mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • name - the mock name
  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(org.easymock.classextension.IMocksControl)
+ public static T mock(java.lang.Class)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(org.easymock.classextension.IMocksControl)
- public abstract T createNiceMock(java.lang.String)
+ public static T mock(java.lang.Class)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- 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:

  • name - the mock name


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public void verify()

Description:
Deprecated.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - to be verified


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T mock(java.lang.Class)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(org.easymock.MockType)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createMock(org.easymock.MockType)
- public static T createMock(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createNiceMock(java.lang.String)
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T mock(java.lang.Class)





Documentation

- 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:

  • name - the mock name


- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createNiceMock(java.lang.String)
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T spy(T)





Documentation

- 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:

  • name - the mock name


- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ 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:

  • object - to spy on






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock()
+ public abstract T when(T)





Documentation

- public T createStrictMock()

Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.

Return Parameters:

  • the newly created mock


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock()
+ public static org.mockito.stubbing.Stubber doCallRealMethod()





Documentation

- public T createStrictMock()

Description:
Create a strict mock from this builder. The same builder can be called to create multiple mocks.

Return Parameters:

  • the newly created mock


+ public Stubber doCallRealMethod()

Description:
Use it for stubbing consecutive calls in Mockito.doCallRealMethod() style. See javadoc for Mockito.doCallRealMethod()

Return Parameters:

  • stubber - to select a method for stubbing






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock(java.lang.String)
+ public abstract T given(T)





Documentation

- 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:

  • name - the mock name


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock(java.lang.String)
+ public abstract T when(T)





Documentation

- 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:

  • name - the mock name


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock(java.lang.String)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenCallRealMethod()





Documentation

- 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:

  • name - the mock name


+ 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:

  • mock - The mock


+ public OngoingStubbing thenCallRealMethod()

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:

  • iOngoingStubbing object that allows stubbing consecutive calls






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock(java.lang.String)
+ public static T mock(java.lang.Class)





Documentation

- 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:

  • name - the mock name


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.Capture newCapture()
+ public static T mock(java.lang.Class)





Documentation

- 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:

  • name - the mock name


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract T createStrictMock(java.lang.String)
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public static T mock(java.lang.Class)
+ public abstract T given(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willAnswer(org.mockito.stubbing.Answer)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public static BDDStubber willAnswer(Answer answer)

Description:
See original Stubber.doAnswer(Answer)






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public BDDMyOngoingStubbing willReturn(T value, T... values)

Description:
See original OngoingStubbing.thenReturn(Object, Object[])






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • name - the mock name


- public void replay()

Description:
Deprecated.


- public void verify()

Description:
Deprecated.


- public final void reset()

Description:
Deprecated.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • name - the mock name


- public void replay()

Description:
Deprecated.


- public void verify()

Description:
Deprecated.


- public final void reset()

Description:
Deprecated.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void andStubReturn(T)
+ public abstract T when(T)





Documentation

- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void andStubReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void replay()
+ public abstract T when(T)





Documentation

- 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void replay()
+ public abstract org.mockito.stubbing.Stubber doNothing()





Documentation

- 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:

  • stubber - to select a method for stubbing






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void replay()
+ public abstract org.mockito.stubbing.Stubber doNothing()
+ public abstract T when(T)





Documentation

- 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:

  • stubber - to select a method for stubbing


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void reset()
+ public abstract T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void verify()
+ public abstract T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void verify()
- public abstract void reset()
+ public abstract T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean get(int)
+ public abstract T when(T)





Documentation

+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean get(int)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)




- List Of Real code commits has this method mapping:
Method Mapping
- public boolean get(int)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean get(int)
+ public boolean get(int)




- List Of Real code commits has this method mapping:
Method Mapping
- public int getValue()
+ public V getValue()





Documentation

- public T getValue()

Description:
Return the captured value

Return Parameters:

  • What was captured


+ 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:

  • captured argument value






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public java.lang.Object put(java.lang.Object, java.lang.Object)




- List Of Real code commits has this method mapping:
Method Mapping
- public org.easymock.IMocksControl createControl()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public static IMocksControl createControl()

Description:
Creates a control, order checking is disabled by default.

Return Parameters:

  • the control.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public org.easymock.IMocksControl createControl()
+ public static T mock(java.lang.Class)





Documentation

- public static IMocksControl createControl()

Description:
Creates a control, order checking is disabled by default.

Return Parameters:

  • the control.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IMocksControl createControl()

Description:
Creates a control, order checking is disabled by default.

Return Parameters:

  • the control.


- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.Capture newCapture()
+ public abstract T given(T)





Documentation

+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.Capture newCapture()
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)





Documentation

+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.Capture newCapture()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer)
+ public abstract T should()





Documentation

+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • name - the mock name


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract T verify(T)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract T when(T)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public static BDDStubber willReturn(Object toBeReturned)

Description:
See original Stubber.doReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.BDDMockito$BDDStubber willReturn(java.lang.Object, java.lang.Object...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public BDDMyOngoingStubbing willReturn(T value, T... values)

Description:
See original OngoingStubbing.thenReturn(Object, Object[])






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public static org.mockito.stubbing.OngoingStubbing when(T)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
+ public static void verifyNoMoreInteractions(java.lang.Object...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ 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);






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public static T mock(java.lang.Class)
+ public abstract org.mockito.BDDMockito$BDDStubber willAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public static BDDStubber willAnswer(Answer answer)

Description:
See original Stubber.doAnswer(Answer)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static T createMock(Class toMock)

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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static T createMock(Class toMock)

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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ 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





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ 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





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
- 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





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ 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





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ 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





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
- 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





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)


+ public BDDMyOngoingStubbing willReturn(T value)

Description:
See original OngoingStubbing.thenReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ public static BDDMyOngoingStubbing given(T methodCall)

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)






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ public static BDDStubber willThrow(Throwable toBeThrown)

Description:
See original Stubber.doThrow(Throwable)


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static T createMock(Class toMock)

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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static T createNiceMock(Class toMock)

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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- 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:

  • mock - The mock


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expect(T)
- public abstract org.easymock.IExpectationSetters times(int)
+ public abstract org.mockito.BDDMockito$BDDMyOngoingStubbing willReturn(T)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


+ public BDDMyOngoingStubbing willReturn(T value)

Description:
See original OngoingStubbing.thenReturn(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters times(int var1)

Description:
Expect the last invocation count times.

Parameters:

  • count - the number of invocations expected.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)





Documentation

+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer)
+ public abstract T should()





Documentation

+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer)
+ public abstract T should()
+ public void start()





Documentation

+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.Stubber doThrow(java.lang.Class, java.lang.Class...)





Documentation

+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public java.lang.Object run()




- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public void start()




- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public static T mock(java.lang.Class)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void verify()

Description:
Deprecated.


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


- public void replay()

Description:
Deprecated.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


- public void replay()

Description:
Deprecated.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters once()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


- public void replay()

Description:
Deprecated.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- 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:

  • toBeThrown - to be thrown when the stubbed method is called


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters atLeastOnce()

Description:
Expect the last invocation at least once.

Return Parameters:

  • this object to allow method call chaining.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- 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:

  • mock - to be verified
  • mode - for example times(x) or atLeastOnce()






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.MockControl createControl(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static MockControl createControl(Class toMock)

Description:
Deprecated.

Parameters:

  • toMock - the class of the interface to mock.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static MockControl createControl(Class toMock)

Description:
Deprecated.

Parameters:

  • toMock - the class of the interface to mock.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.Class)
+ public abstract T given(T)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static BDDMyOngoingStubbing given(T methodCall)

Description:
see original Mockito.when(Object)






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)





Documentation

- public static T createMock(Class toMock)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


- public void verify()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.Class)
- public abstract T createMock(org.easymock.MockType)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters once()

Description:
Expect the last invocation once. This is default in EasyMock.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public IExpectationSetters anyTimes()

Description:
Expect the last invocation any times.

Return Parameters:

  • this object to allow method call chaining.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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, java.lang.Class...)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation


+ 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:

  • toBeThrown - to be thrown when the stubbed method is called






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.Class)
- public static T createStrictMock(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.Class)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(Class toMock)

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 classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.String, java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(String name, Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createMock(java.lang.String, java.lang.Class)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)





Documentation

- public static T createMock(String name, Class toMock)

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 classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createNiceMock(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createNiceMock(Class toMock)

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 classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createNiceMock(java.lang.Class)
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)





Documentation

- public static T createNiceMock(Class toMock)

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 classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createStrictMock(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static T createStrictMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)





Documentation

- public static T createStrictMock(Class toMock)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


- 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:

  • mock - The mock


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createStrictMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is enabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public void andStubReturn(T var1)

Description:
Sets a stub return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static T createStrictMock(Class toMock)

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:

  • threadSafe - If the mock should be thread safe or not


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andThrow(Throwable var1)

Description:
Sets a throwable that will be thrown for the expected invocation.

Parameters:

  • throwable - the throwable to throw.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract T when(T)





Documentation

+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andReturn(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static T createNiceMock(Class toMock)

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 thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IExpectationSetters expectLastCall()
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IMocksControl createControl()
+ public static T mock(java.lang.Class)





Documentation

- public static IMocksControl createControl()

Description:
Creates a control, order checking is disabled by default.

Return Parameters:

  • the control.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IMocksControl createControl()
- public abstract T createMock(org.easymock.IMocksControl)
+ public static T mock(java.lang.Class)





Documentation

- public static IMocksControl createControl()

Description:
Creates a control, order checking is disabled by default.

Return Parameters:

  • the control.


- public T createMock(IMocksControl var1)

Description:
Create mock from the provided mock control using the arguments passed to the builder.

Parameters:

  • control - IMocksControl used to create the object


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IMocksControl createNiceControl()
+ public static void initMocks(java.lang.Object)





Documentation

- 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:

  • the control.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IMocksControl createNiceControl()
- public abstract T createMock(java.lang.Class)
+ public static void initMocks(java.lang.Object)





Documentation

- 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:

  • the control.


- public static T createMock(Class toMock)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IMocksControl createStrictControl()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

- public static IMocksControl createStrictControl()

Description:
Creates a control, order checking is enabled by default.

Return Parameters:

  • the control.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.IMocksControl createStrictControl()
+ public static T mock(java.lang.Class)





Documentation

- public static IMocksControl createStrictControl()

Description:
Creates a control, order checking is enabled by default.

Return Parameters:

  • the control.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IMocksControl createStrictControl()

Description:
Creates a control, order checking is enabled by default.

Return Parameters:

  • the control.


- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IMocksControl createStrictControl()

Description:
Creates a control, order checking is enabled by default.

Return Parameters:

  • the control.


- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static IMocksControl createStrictControl()

Description:
Creates a control, order checking is enabled by default.

Return Parameters:

  • the control.


- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public static IMocksControl createStrictControl()

Description:
Creates a control, order checking is enabled by default.

Return Parameters:

  • the control.


- public static T createMock(Class toMock)

Description:
Creates a mock object that implements the given interface, order checking is disabled by default.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.MockControl createControl(java.lang.Class)
+ public static T mock(java.lang.Class)





Documentation

- public static MockControl createControl(Class toMock)

Description:
Deprecated.

Parameters:

  • toMock - the class of the interface to mock.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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...)





Documentation

- public static MockControl createControl(Class toMock)

Description:
Deprecated.

Parameters:

  • toMock - the class of the interface to mock.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock


+ 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:

  • mock - The mock


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.easymock.MockControl createControl(java.lang.Class)
- public void setDefaultMatcher(org.easymock.ArgumentsMatcher)
+ public static T mock(java.lang.Class)





Documentation

- public static MockControl createControl(Class toMock)

Description:
Deprecated.

Parameters:

  • toMock - the class of the interface to mock.


- public void setDefaultMatcher(ArgumentsMatcher matcher)

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static void makeThreadSafe(java.lang.Object, boolean)
+ public abstract T when(T)





Documentation

- public void makeThreadSafe(boolean var1)

Description:
Makes the mock thread safe.

Parameters:

  • threadSafe - If the mock should be thread safe or not


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static void makeThreadSafe(java.lang.Object, boolean)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)





Documentation

- public void makeThreadSafe(boolean var1)

Description:
Makes the mock thread safe.

Parameters:

  • threadSafe - If the mock should be thread safe or not


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- public static void makeThreadSafe(java.lang.Object, boolean)
+ public static T mock(java.lang.Class)





Documentation

- public void makeThreadSafe(boolean var1)

Description:
Makes the mock thread safe.

Parameters:

  • threadSafe - If the mock should be thread safe or not


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public abstract T when(T)





Documentation

- 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.BDDMockito$BDDMyOngoingStubbing willThrow(java.lang.Throwable...)





Documentation

- public void replay()

Description:
Deprecated.


+ public static BDDStubber willThrow(Throwable toBeThrown)

Description:
See original Stubber.doThrow(Throwable)






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T, T...)





Documentation

- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value, T... values)

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:

  • value - first return value
  • values - next return values






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenThrow(java.lang.Throwable...)





Documentation

- public void replay()

Description:
Deprecated.


+ private OngoingStubbing thenThrow(Throwable throwable)

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:

  • throwables - to be thrown on method invocation






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public static T mock(java.lang.Class)





Documentation

- public void replay()

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public static T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
+ public static void verifyNoMoreInteractions(java.lang.Object...)





Documentation

- 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);






- List Of Real code commits has this method mapping:
Method Mapping
- public static void replay(java.lang.Object...)
- public static void verify(java.lang.Object...)
+ public abstract T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • mock - to be verified
  • mode - for example times(x) or atLeastOnce()






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reportMatcher(org.easymock.IArgumentMatcher)
+ public static T argThat(org.hamcrest.Matcher)





Documentation

+ public static T argThat(Matcher 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:

  • matcher - decides whether argument matches






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reset(java.lang.Object...)
+ public void reset(T...)





Documentation

- public final void reset()

Description:
Deprecated.


+ public void reset()

Description:
Specified by: reset in interface ArgumentMatcherStorage






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reset(java.lang.Object...)
+ public abstract T when(T)





Documentation

- 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reset(java.lang.Object...)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reset(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public final void reset()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public final void reset()

Description:
Deprecated.


- public static IExpectationSetters expect(T value)

Description:
Returns the expectation setter for the last expected invocation in the current thread.

Parameters:

  • value - the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public abstract T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public abstract T verify(T, org.mockito.internal.verification.api.VerificationMode)





Documentation

- 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:

  • mock - to be verified
  • mode - for example times(x) or atLeastOnce()






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public abstract T verify(T, org.mockito.verification.VerificationMode)





Documentation

- 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:

  • mock - to be verified
  • mode - for example times(x) or atLeastOnce()






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public abstract T when(T)





Documentation

- 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public abstract java.lang.Object get(java.lang.Object, java.lang.Object)





Documentation

- public void verify()

Description:
Deprecated.






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public abstract org.mockito.stubbing.OngoingStubbing then(org.mockito.stubbing.Answer)
+ public abstract T should()





Documentation

- public void verify()

Description:
Deprecated.


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public static org.mockito.ArgumentCaptor forClass(java.lang.Class)





Documentation

- public void verify()

Description:
Deprecated.


+ public static ArgumentCaptor forClass(Class clazz)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static void verify(java.lang.Object...)
+ public static T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public void verify()

Description:
Deprecated.


- public final void reset()

Description:
Deprecated.


- public void replay()

Description:
Deprecated.


- public IExpectationSetters andReturn(T var1)

Description:
Sets a return value that will be returned for the expected invocation.

Parameters:

  • value - the value to return.


+ public OngoingStubbing then(Answer answer)

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:

  • answer - the custom answer to execute.






- List Of Real code commits has this method mapping:
Method Mapping
- public void expectAndReturn(java.lang.Object, java.lang.Object)
+ public abstract T when(T)





Documentation

- public void expectAndReturn(V1 ignored, V2 value)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public void expectAndReturn(java.lang.Object, java.lang.Object)
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public void expectAndReturn(V1 ignored, V2 value)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


+ 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public void expectAndReturn(java.lang.Object, java.lang.Object)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public void expectAndReturn(V1 ignored, V2 value)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public void expectAndReturn(java.lang.Object, java.lang.Object, int)
+ public abstract T when(T)





Documentation

- public void expectAndReturn(V1 ignored, V2 value, Range range)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


+ 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public void expectAndReturn(java.lang.Object, java.lang.Object, int)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public void expectAndReturn(V1 ignored, V2 value, Range range)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void expectAndReturn(V1 ignored, V2 value, Range range)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


- public void expectAndReturn(V1 ignored, V2 value)

Description:
Deprecated.

Parameters:

  • ignored - an ignored value.


- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public void push(boolean)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)




- List Of Real code commits has this method mapping:
Method Mapping
- public void push(boolean)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public void push(boolean)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)
+ public abstract T answer(org.mockito.invocation.InvocationOnMock) throws java.lang.Throwable





Documentation

- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.


+ public Object answer(InvocationOnMock invocation) throws Throwable

Description:
Specified by: answer in interface Answer<java.lang.Object>

Parameters:

  • invocation - the invocation on the mock.






- List Of Real code commits has this method mapping:
Method Mapping
- public void replay()
+ public abstract T when(T)





Documentation

- 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:

  • mock - The mock






- List Of Real code commits has this method mapping:
Method Mapping
- public void replay()
+ public abstract T when(T)
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- 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:

  • mock - The mock


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public void replay()
+ public abstract org.mockito.stubbing.OngoingStubbing thenReturn(T)





Documentation

- public void replay()

Description:
Deprecated.


+ public OngoingStubbing thenReturn(T value)

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:

  • value - return value






- List Of Real code commits has this method mapping:
Method Mapping
- public void set(int)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)




- List Of Real code commits has this method mapping:
Method Mapping
- public void set(int)
- public static org.easymock.IExpectationSetters expectLastCall()
- public abstract org.easymock.IExpectationSetters andAnswer(org.easymock.IAnswer)
+ public abstract org.mockito.stubbing.Stubber doAnswer(org.mockito.stubbing.Answer)





Documentation

- public IExpectationSetters andAnswer(IAnswer var1)

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:

  • answer - the object used to answer the invocation.






- List Of Real code commits has this method mapping:
Method Mapping
- public void setDefaultMatcher(org.easymock.ArgumentsMatcher)
+ public static T mock(java.lang.Class)





Documentation

- public void setDefaultMatcher(ArgumentsMatcher matcher)

Description:
Deprecated.


+ public static T mock(Class classToMock)

Description:
Creates mock object of given class or interface. See examples in javadoc for Mockito class

Parameters:

  • classToMock - class or interface to mock






- List Of Real code commits has this method mapping:
Method Mapping
- public void verify()
+ public abstract T verify(T)





Documentation

- 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:

  • mock - to be verified






- List Of Real code commits has this method mapping:
Migration Rule testng <==> junit
Method Mapping
- boolean isNull()
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException





Documentation

+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- java.lang.String[] toString(java.lang.Object[], java.lang.Class[])
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract int size()
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • unexpected - the object you don't expect
  • actual - the object to compare to unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract int size()
+ public static void assertTrue(java.lang.String, boolean)





Documentation

+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract int[] indices()
+ public static org.hamcrest.Matcher equalTo(T)





Documentation

+ public static Matcher equalTo(T operand)

Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract int[] indices()
+ public static void assertTrue(java.lang.String, boolean)





Documentation

+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Class[] getValue()
+ public abstract java.lang.Object getValue() throws org.junit.experimental.theories.PotentialAssignment$CouldNotGenerateValueException





Documentation

- 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






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Class[] getValue()
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Class[] getValue()
- public boolean equals(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object getInstance()
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object getInstance()
- public abstract java.lang.Class[] getValue()
- public boolean equals(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object[] getInstances(boolean)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • reuse - flag if a new set of instances must be returned (if set to false)


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.Object[] getInstances(boolean)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • reuse - flag if a new set of instances must be returned (if set to false)


- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • reuse - flag if a new set of instances must be returned (if set to false)


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • unexpected - the object you don't expect
  • actual - the object to compare to unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.String getMessage()
+ public java.lang.String getMessage()





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.String getMessage()
+ public static void fail(java.lang.String)





Documentation

- public String getMessage()

Description:
Overrides: getMessage in class Throwable


+ public static void fail(String message)

Description:
Fails a test with the given message.

Parameters:

  • message - the identifying message for the AssertionError ( null okay)






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.String getType()
+ public abstract java.lang.Class getType()





Documentation

+ public Class getType()

Description:
Specified by: getType in class FrameworkMember<FrameworkField>

Return Parameters:

  • the underlying Java Field type






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.String getType()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.lang.String getType()
- java.lang.String[] toString(java.lang.Object[], java.lang.Class[])
+ public abstract java.lang.Class getType()





Documentation

- public String toString()

Description:
Overrides: toString in class Object


+ public Class getType()

Description:
Specified by: getType in class FrameworkMember<FrameworkField>

Return Parameters:

  • the underlying Java Field type






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.testng.xml.XmlTest getTest()
+ public junit.framework.Test getTest()





Documentation

- public XmlTest getTest()

Description:
Specified by: getTest in interface org.testng.internal.ITestResultNotifier






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void run(org.testng.IConfigureCallBack, org.testng.ITestResult)
+ public junit.framework.TestResult start(java.lang.String[]) throws java.lang.Exception





Documentation

- public String run(String template, Map m) throws IOException

Description:
Throws: IOException






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void run(org.testng.IConfigureCallBack, org.testng.ITestResult)
+ public synchronized void stop()





Documentation

- public String run(String template, Map m) throws IOException

Description:
Throws: IOException






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public String run(String template, Map m) throws IOException

Description:
Throws: IOException


- public void runTestMethod(ITestResult tr)

Description:
Invoke the test method currently being hijacked.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void runTestMethod(org.testng.ITestResult)
+ public junit.framework.TestResult start(java.lang.String[]) throws java.lang.Exception





Documentation

- public void runTestMethod(ITestResult tr)

Description:
Invoke the test method currently being hijacked.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void runTestMethod(org.testng.ITestResult)
+ public synchronized void stop()





Documentation

- public void runTestMethod(ITestResult tr)

Description:
Invoke the test method currently being hijacked.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void setId(java.lang.String)
+ public static org.hamcrest.Matcher equalTo(T)





Documentation

+ public static Matcher equalTo(T operand)

Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void setParameters(java.lang.Object[])
+ org.hamcrest.Matcher build()





Documentation

- public void setParameters(Object[] parameters)

Description:
Sets parameters.

Parameters:

  • parameters - the parameters.


+ public Timeout build()

Description:
Builds a Timeout instance using the values in this builder.,






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void shutdown()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void shutdown()
+ public static void assertEquals(java.lang.String, float, float, float)





Documentation

+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - the value to check against expected
  • delta - the maximum delta between expected and actual for which both numbers are still considered equal.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void shutdown()
- public void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public boolean equals(java.lang.Object)





Documentation

- public boolean equals(Object obj)

Description:
Overrides: equals in class Object


+ public boolean equals(Object obj)

Description:
Overrides: equals in class Object






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])
+ public static void assertTrue(boolean)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public int compareTo(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object next()
+ public abstract java.lang.Class getType()





Documentation

+ public Class getType()

Description:
Specified by: getType in class FrameworkMember<FrameworkField>

Return Parameters:

  • the underlying Java Field type






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object next()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public java.lang.String toString()





Documentation

- public String toString()

Description:
Overrides: toString in class Object


+ public String toString()

Description:
Overrides: toString in class Object






- List Of Real code commits has this method mapping:
Method Mapping
- public org.testng.collections.Objects$ToStringHelper add(java.lang.String, java.lang.Object)
+ public static org.junit.rules.ExpectedException none()





Documentation

+ public static ExpectedException none()

Description:
Returns a rule that expects no exception to be thrown (identical to behavior without this rule).






- List Of Real code commits has this method mapping:
Method Mapping
- public org.testng.ISuite get(org.testng.xml.XmlSuite)
+ public java.lang.Object get(java.lang.Object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException





Documentation

+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.testng.internal.collections.Pair create(A, B)
+ public void expect(java.lang.Class)





Documentation

+ public void expect(Class type)

Description:
Adds matcher to the list of requirements for any thrown exception.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.Set newHashSet(java.util.Collection)
+ public static void assertFalse(boolean)





Documentation

+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.Set newHashSet(java.util.Collection)
+ public static void assertTrue(boolean)





Documentation

+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the assertion error message
  • realCause - the original exception


+ 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:

  • condition - condition to be checked


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toString(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(byte[], byte[])
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(byte[], byte[])
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.lang.String, byte[], byte[])
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(java.lang.String, float, float, float)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - the value to check against expected
  • delta - the maximum delta between expected and actual for which both numbers are still considered equal.






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertThat(T, org.hamcrest.Matcher)





Documentation

- 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 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






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set, java.lang.String)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set, java.lang.String)
+ public static void assertEquals(java.lang.String, float, float, float)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - the value to check against expected
  • delta - the maximum delta between expected and actual for which both numbers are still considered equal.






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertEquals(java.util.Set, java.util.Set, java.lang.String)
+ public static void assertEquals(java.lang.String, int, int)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertFalse(boolean)
+ public static void assertThat(T, org.hamcrest.Matcher)





Documentation

- 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 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






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertFalse(boolean)
+ public static void assertFalse(boolean)





Documentation

- 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertFalse(boolean)
+ public static void assertFalse(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertFalse(boolean, java.lang.String)
+ public static void assertFalse(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object)
+ public static org.hamcrest.Matcher equalTo(T)





Documentation

- public static void assertNotNull(Object object)

Description:
Asserts that an object isn't null.


+ public static Matcher equalTo(T operand)

Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object)
+ public static void assertThat(T, org.hamcrest.Matcher)





Documentation

- public static void assertNotNull(Object object)

Description:
Asserts that an object isn't null.


+ public static void assertThat(T actual, Matcher 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






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object)
+ public static void assertNotNull(java.lang.Object)





Documentation

- 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:

  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object)
- public static void assertFalse(boolean)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertFalse(boolean)





Documentation

- 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:

  • object - Object to check or null


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object)
- public static void assertTrue(boolean)
+ public static void assertNotNull(java.lang.Object)
+ public static void assertTrue(boolean)





Documentation

- 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:

  • object - Object to check or null


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • object - Object to check or null


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object, java.lang.String)
+ public static void assertThat(T, org.hamcrest.Matcher)





Documentation

- 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 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






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotNull(java.lang.Object, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNotSame(java.lang.Object, java.lang.Object)
+ public static void assertNotSame(java.lang.Object, java.lang.Object)





Documentation

- 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:

  • unexpected - the object you don't expect
  • actual - the object to compare to unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNull(java.lang.Object)
+ public static void assertNull(java.lang.Object)





Documentation

- 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:

  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertNull(java.lang.Object, java.lang.String)
+ public static void assertNull(java.lang.String, java.lang.Object)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean)
+ public static void assertThat(T, org.hamcrest.Matcher)





Documentation

- 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 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






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean)
+ public static void assertTrue(boolean)





Documentation

- 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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 equalTo(T operand)

Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean)
- public static void assertFalse(boolean)
+ public static void assertTrue(boolean)
+ public static void assertFalse(boolean)





Documentation

- 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:

  • condition - condition to be checked


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(boolean)





Documentation

- 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean)
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public static void assertTrue(boolean, java.lang.String)
+ public static void fail(java.lang.String)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • reuse - flag if a new set of instances must be returned (if set to false)


- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • unexpected - the object you don't expect
  • actual - the object to compare to unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • reuse - flag if a new set of instances must be returned (if set to false)


- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • unexpected - the object you don't expect
  • actual - the object to compare to unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void clear()
+ public static org.junit.rules.ExpectedException none()





Documentation

- 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).






- List Of Real code commits has this method mapping:
Method Mapping
- public static void fail()
+ public static void fail()





Documentation

- public static void fail()

Description:
Fails a test with no message.


+ public static void fail()

Description:
Fails a test with no message.






- List Of Real code commits has this method mapping:
Method Mapping
- public static void fail(java.lang.String)
+ public static void fail(java.lang.String)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)


+ public String getMessage()

Description:
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)


+ 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public static void fail(java.lang.String, java.lang.Throwable)
+ public static void fail(java.lang.String)





Documentation

- public static void fail(String message, Throwable realCause)

Description:
Fails a test with the given message and wrapping the original exception.

Parameters:

  • message - the assertion error message
  • realCause - the original exception


+ public static void fail(String message)

Description:
Fails a test with the given message.

Parameters:

  • message - the identifying message for the AssertionError ( null okay)






- List Of Real code commits has this method mapping:
Method Mapping
- public static void log(java.lang.String, int, boolean)
+ public static org.junit.rules.ExpectedException none()





Documentation

- 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:

  • s - The message to log
  • level - The verbosity of this message
  • logToStandardOut - Whether to print this string on standard out too


+ public static ExpectedException none()

Description:
Returns a rule that expects no exception to be thrown (identical to behavior without this rule).






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • s - The message to log
  • level - The verbosity of this message
  • logToStandardOut - Whether to print this string on standard out too


- 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).






- List Of Real code commits has this method mapping:
Method Mapping
- public void addParameter(java.lang.String, java.lang.String)
+ org.hamcrest.Matcher build()





Documentation

+ public Timeout build()

Description:
Builds a Timeout instance using the values in this builder.,






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Map, java.util.Map)
+ public static void assertEquals(java.lang.String, float, float, float)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - the value to check against expected
  • delta - the maximum delta between expected and actual for which both numbers are still considered equal.






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.String, float, float, float)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - the value to check against expected
  • delta - the maximum delta between expected and actual for which both numbers are still considered equal.






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
+ public static void assertEquals(java.lang.String, java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ public Class getType()

Description:
Specified by: getType in class FrameworkMember<FrameworkField>

Return Parameters:

  • the underlying Java Field type






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ public Class getType()

Description:
Specified by: getType in class FrameworkMember<FrameworkField>

Return Parameters:

  • the underlying Java Field type






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
- public abstract void shutdown()
+ public static void assertArrayEquals(long[], long[])





Documentation

- 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:

  • expecteds - Object array or array of arrays (multi-dimensional array) with expected values
  • actuals - Object array or array of arrays (multi-dimensional array) with actual values






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
- public abstract void shutdown()
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
- public int compareTo(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
- public static java.lang.String toString(java.lang.Object)
+ public static void assertEquals(int, int)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set)
- public void assertFalse(boolean)
+ public static void assertEquals(int, int)
+ public static void assertFalse(boolean)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • base - The Statement to be modified
  • description - A Description of the test implemented in base


+ 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • expected - expected value
  • actual - the value to check against expected


+ 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:

  • unexpected - unexpected value to check
  • actual - the value to check against unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set, java.lang.String)
+ public static void assertEquals(java.lang.String, int, int)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertEquals(java.util.Set, java.util.Set, java.lang.String)
+ public static void assertNull(java.lang.String, java.lang.Object)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value


+ 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:

  • expected - expected value
  • actual - the value to check against expected


+ public static void assertNotNull(Object object)

Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.

Parameters:

  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertFalse(boolean)
+ public static void assertFalse(boolean)





Documentation

- 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertFalse(boolean)
+ public static void assertFalse(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertFalse(boolean)
- public void assertTrue(boolean)
+ public static void assertFalse(boolean)
+ public static void assertTrue(boolean)





Documentation

- 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:

  • condition - condition to be checked


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertFalse(boolean, java.lang.String)
+ public static void assertFalse(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ public static void fail(String message)

Description:
Fails a test with the given message.

Parameters:

  • message - the identifying message for the AssertionError ( null okay)






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertNotEquals(double, double, double)
+ public static void assertNotSame(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • unexpected - the object you don't expect
  • actual - the object to compare to unexpected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertNotEquals(double, double, double)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertNotNull(java.lang.Object)
+ public static void assertNotNull(java.lang.Object)





Documentation

- 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:

  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • object - Object to check or null


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the assertion error message
  • realCause - the original exception


+ public static void assertNotNull(Object object)

Description:
Asserts that an object isn't null. If it is an AssertionError is thrown.

Parameters:

  • object - Object to check or null


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertNotNull(java.lang.Object, java.lang.String)
+ public static void assertNotNull(java.lang.String, java.lang.Object)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertNull(java.lang.Object)
+ public static void assertNull(java.lang.Object)





Documentation

- 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:

  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • object - Object to check or null


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - the value to check against expected
  • delta - the maximum delta between expected and actual for which both numbers are still considered equal.






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertNull(java.lang.Object, java.lang.String)
+ public static void assertNull(java.lang.String, java.lang.Object)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • object - Object to check or null






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertTrue(boolean)
+ public static void assertTrue(boolean)





Documentation

- 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertTrue(boolean)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • condition - condition to be checked


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertTrue(boolean)
- public void assertFalse(boolean)
+ public static void assertTrue(boolean)
+ public static void assertFalse(boolean)





Documentation

- 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:

  • condition - condition to be checked


+ 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(boolean)





Documentation

- 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:

  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void assertTrue(boolean, java.lang.String)
+ public static void assertTrue(java.lang.String, boolean)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • expected - expected value
  • actual - actual value






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked


+ 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:

  • message - the identifying message for the AssertionError ( null okay)
  • condition - condition to be checked






- List Of Real code commits has this method mapping:
Method Mapping
- public void execute() throws org.apache.tools.ant.BuildException
+ public static org.hamcrest.Matcher equalTo(T)





Documentation

- public void execute() throws BuildException

Description:
Launches TestNG in a new JVM.


+ public static Matcher equalTo(T operand)

Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?






- List Of Real code commits has this method mapping:
Method Mapping
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public abstract java.lang.Object getValue() throws org.junit.experimental.theories.PotentialAssignment$CouldNotGenerateValueException





Documentation

+ public Object getValue() throws CouldNotGenerateValueException

Description:
Throws: PotentialAssignment.CouldNotGenerateValueException






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- public void put(org.testng.xml.XmlSuite, org.testng.ISuite)
+ public static void assertEquals(int, int)





Documentation

+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ 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:

  • expected - expected value
  • actual - the value to check against expected


+ public Object get(Object target) throws IllegalArgumentException, IllegalAccessException

Description:
Attempts to retrieve the value of this field on target






- List Of Real code commits has this method mapping:
Method Mapping
- public void setIndex(int)
+ public static org.hamcrest.Matcher equalTo(T)





Documentation

+ public static Matcher equalTo(T operand)

Description:
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?






- List Of Real code commits has this method mapping:
Method Mapping
- public void testAssumptionFailure(org.junit.runner.notification.Failure)
+ void add(org.hamcrest.Matcher)




- List Of Real code commits has this method mapping:
Method Mapping
- public void testFailure(org.junit.runner.notification.Failure) throws java.lang.Exception
+ public void testAssumptionFailure(org.junit.runner.notification.Failure)





Documentation

+ public void testAssumptionFailure(Failure failure)

Description:
Called when an atomic test flags that it assumes a condition that is false

Parameters:

  • failure - describes the test that failed and the AssumptionViolatedException that was thrown






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

+ public void testAssumptionFailure(Failure failure)

Description:
Called when an atomic test flags that it assumes a condition that is false

Parameters:

  • failure - describes the test that failed and the AssumptionViolatedException that was thrown






- List Of Real code commits has this method mapping:
Method Mapping
- public void testFailure(org.junit.runner.notification.Failure) throws java.lang.Exception
+ void add(org.hamcrest.Matcher)




- List Of Real code commits has this method mapping:
Method Mapping
- void assertNotEquals(int, int)
+ public static void assertEquals(java.lang.Object[], java.lang.Object[])





Documentation

+ 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:

  • expected - expected value
  • actual - the value to check against expected






- List Of Real code commits has this method mapping:
Method Mapping
- void assertNotEquals(int, int)
+ public static void assertNotEquals(long, long)





Documentation

+ 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:

  • unexpected - unexpected value to check
  • actual - the value to check against unexpected






- List Of Real code commits has this method mapping:
Migration Rule commons-logging <==> slf4j
Method Mapping
- protected org.apache.commons.logging.Log newInstance(java.lang.String) throws org.apache.commons.logging.LogConfigurationException
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)





Documentation

- protected Log newInstance(String name) throws LogConfigurationException

Description:
Create and return a new Log instance for the specified name.

Parameters:

  • name - Name of the new logger


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- protected Log newInstance(String name) throws LogConfigurationException

Description:
Create and return a new Log instance for the specified name.

Parameters:

  • name - Name of the new logger


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- protected Log newInstance(String name) throws LogConfigurationException

Description:
Create and return a new Log instance for the specified name.

Parameters:

  • name - Name of the new logger


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- protected void log(int, java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • type - One of the LOG_LEVEL_XXX constants defining the log level
  • message - The message itself (typically a String)
  • t - The exception whose stack trace should be logged


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- protected void write(java.lang.StringBuffer)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • buffer - A StringBuffer containing the accumulated text to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- protected void write(java.lang.StringBuffer)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • buffer - A StringBuffer containing the accumulated text to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- protected void write(java.lang.StringBuffer)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- 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:

  • buffer - A StringBuffer containing the accumulated text to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- protected void write(java.lang.StringBuffer)
+ public abstract void warn(java.lang.String, java.lang.Object)





Documentation

- 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:

  • buffer - A StringBuffer containing the accumulated text to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- protected void write(java.lang.StringBuffer)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • buffer - A StringBuffer containing the accumulated text to be logged


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isDebugEnabled()
+ public abstract boolean isDebugEnabled()





Documentation

- public boolean isDebugEnabled()

Description:
Is debug logging currently enabled?


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isDebugEnabled()
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isDebugEnabled()
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- public boolean isDebugEnabled()

Description:
Is debug logging currently enabled?


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public boolean isDebugEnabled()

Description:
Is debug logging currently enabled?


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public boolean isTraceEnabled()

Description:
Is trace logging currently enabled?


- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


- public void trace(Object message, Throwable exception)

Description:
Log a message and exception with trace log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public boolean isTraceEnabled()

Description:
Is the logger instance enabled for the TRACE level?

Return Parameters:

  • True if this Logger is enabled for the TRACE level, false otherwise.


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isInfoEnabled()
+ public abstract boolean isInfoEnabled()





Documentation

- public boolean isInfoEnabled()

Description:
Is info logging currently enabled?


+ public boolean isInfoEnabled()

Description:
Is the logger instance enabled for the INFO level?

Return Parameters:

  • True if this Logger is enabled for the INFO level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isInfoEnabled()
+ public abstract boolean isInfoEnabled(org.slf4j.Marker)





Documentation

- 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:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isInfoEnabled()
+ public abstract void info(java.lang.String)





Documentation

- public boolean isInfoEnabled()

Description:
Is info logging currently enabled?


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isInfoEnabled()
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isInfoEnabled()
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- public boolean isInfoEnabled()

Description:
Is info logging currently enabled?


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isTraceEnabled()
+ public abstract boolean isTraceEnabled()





Documentation

- public boolean isTraceEnabled()

Description:
Is trace logging currently enabled?


+ public boolean isTraceEnabled()

Description:
Is the logger instance enabled for the TRACE level?

Return Parameters:

  • True if this Logger is enabled for the TRACE level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean isTraceEnabled()
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public boolean isTraceEnabled()

Description:
Is trace logging currently enabled?


- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object)
+ public abstract void debug(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • marker - the marker data specific to this log statement
  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object)
+ public abstract void trace(java.lang.String)





Documentation

- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object)





Documentation

- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)
+ public abstract void debug(java.lang.String)





Documentation

- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • marker - the marker data specific to this log statement
  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- protected Log newInstance(String name) throws LogConfigurationException

Description:
Create and return a new Log instance for the specified name.

Parameters:

  • name - Name of the new logger


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object)
+ public abstract void error(java.lang.String)





Documentation

- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object)
- public abstract void fatal(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void fatal(Object message)

Description:
Log a message with fatal log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • marker - the marker data specific to this log statement
  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void fatal(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public void fatal(Object message)

Description:
Log a message with fatal log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void fatal(java.lang.Object, java.lang.Throwable)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public void fatal(Object message, Throwable exception)

Description:
Log a message and exception with fatal log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object)
+ public abstract void info(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object)
- public abstract boolean isTraceEnabled()
+ public abstract void info(java.lang.String)
+ public abstract boolean isTraceEnabled()





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public boolean isTraceEnabled()

Description:
Is trace logging currently enabled?


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public boolean isTraceEnabled()

Description:
Is the logger instance enabled for the TRACE level?

Return Parameters:

  • True if this Logger is enabled for the TRACE level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object)
- public abstract void debug(java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.Object, java.lang.Throwable)
+ public abstract void info(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void setAttribute(java.lang.String, java.lang.Object)
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • name - Name of the attribute to set
  • value - Value of the attribute to set, or null to remove any setting for this attribute


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void setAttribute(java.lang.String, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • name - Name of the attribute to set
  • value - Value of the attribute to set, or null to remove any setting for this attribute


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object)





Documentation

- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.Object)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.Object)
+ public abstract void trace(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


+ 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:

  • marker - the marker data specific to this log statement
  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void trace(Object message, Throwable exception)

Description:
Log a message and exception with trace log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public boolean isTraceEnabled(Marker var1)

Description:
Similar to isTraceEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String)





Documentation

- public void trace(Object message, Throwable exception)

Description:
Log a message and exception with trace log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String, java.lang.Object)





Documentation

- public void trace(Object message, Throwable exception)

Description:
Log a message and exception with trace log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.Object, java.lang.Throwable)
+ public abstract void trace(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void trace(Object message, Throwable exception)

Description:
Log a message and exception with trace log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object)
+ public abstract void trace(java.lang.String)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object)
+ public abstract void warn(org.slf4j.Marker, java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • marker - the marker data specific to this log statement
  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String)





Documentation

- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String, java.lang.Object)





Documentation

- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.Object, java.lang.Throwable)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(java.lang.Object)
+ public abstract java.lang.String get(java.lang.String)





Documentation

- 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:

  • the string value identified by the key parameter.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(java.lang.Object, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public org.apache.log.Logger getLogger()
+ public static java.lang.String arrayFormat(java.lang.String, java.lang.Object[])





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argArray - An array of arguments to be substituted in place of formatting anchors






- List Of Real code commits has this method mapping:
Method Mapping
- public org.apache.log.Logger getLogger()
+ public static java.lang.String format(java.lang.String, java.lang.Object)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


+ 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor






- List Of Real code commits has this method mapping:
Method Mapping
- public org.apache.log.Logger getLogger()
+ public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public boolean isDebugEnabled()

Description:
Is debug logging currently enabled?


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public boolean isDebugEnabled()

Description:
Is debug logging currently enabled?


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- 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:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public boolean isDebugEnabled()

Description:
Is debug logging currently enabled?


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- 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:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • the string value identified by the key parameter.


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- 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:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ public void add(Marker var1)

Description:
Add a reference to another Marker.

Parameters:

  • reference - a reference to another marker


+ public boolean remove(Marker var1)

Description:
Remove a marker reference.

Parameters:

  • reference - the marker reference to remove






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message)

Description:
Log a message with error log level.

Parameters:

  • message - log this message


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- 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:

  • buffer - A StringBuffer containing the accumulated text to be logged


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void info(Object message, Throwable exception)

Description:
Log a message and exception with info log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void debug(Object message, Throwable exception)

Description:
Log a message and exception with debug log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


- public void debug(Object message)

Description:
Log a message with debug log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public boolean isTraceEnabled(Marker var1)

Description:
Similar to isTraceEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void trace(Object message)

Description:
Log a message with trace log level.

Parameters:

  • message - log this message


- public void trace(Object message, Throwable exception)

Description:
Log a message and exception with trace log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public boolean isTraceEnabled(Marker var1)

Description:
Similar to isTraceEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public boolean isInfoEnabled()

Description:
Is info logging currently enabled?


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public boolean isInfoEnabled()

Description:
Is the logger instance enabled for the INFO level?

Return Parameters:

  • True if this Logger is enabled for the INFO level, false otherwise.


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


- public void error(Object message, Throwable exception)

Description:
Log a message and exception with error log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- public void warn(Object message, Throwable exception)

Description:
Log a message and exception with warn log level.

Parameters:

  • message - log this message
  • exception - log this cause


- public void warn(Object message)

Description:
Log a message with warn log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • clazz - Class from which a log name will be derived


- 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:

  • name - Name of the attribute to set
  • value - Value of the attribute to set, or null to remove any setting for this attribute


- public void info(Object message)

Description:
Log a message with info log level.

Parameters:

  • message - log this message


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.apache.commons.logging.LogFactory getFactory() throws org.apache.commons.logging.LogConfigurationException
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.apache.commons.logging.LogFactory getFactory() throws org.apache.commons.logging.LogConfigurationException
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Migration Rule google-collect <==> guava
Method Mapping
- public abstract boolean isEmpty()
+ public static void checkArgument(boolean)





Documentation

- 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:

  • expression - a boolean expression






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean put(K, V)
+ public abstract V put(K, V)





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract int size()
+ public abstract long size()





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.util.Collection get(K)
+ public abstract V getIfPresent(java.lang.Object)





Documentation

- public SortedSet get(K key)

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:

  • key - key to search for in multimap






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract V get(java.lang.Object)
+ protected abstract E get(int)





Documentation

- public Collection get(Object key)

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:

  • key - key to search for in multimap


+ public E get(int index)

Description:
Specified by: get in interface List<E>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract V put(K, V)
+ public abstract V put(K, V)





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void clear()
+ public abstract void invalidateAll()





Documentation

- public void clear()

Description:
Removes all key-value pairs from the multimap.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String join(java.util.Map)
+ public final java.lang.String join(java.lang.Object[])





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String join(java.util.Map)
+ public static com.google.common.base.Joiner on(char)





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.TreeMultiset create(java.lang.Iterable)
+ public static com.google.common.collect.TreeMultiset create(java.lang.Iterable)





Documentation

- public static HashMultiset create(Iterable elements)

Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements


+ public static HashMultiset create(Iterable elements)

Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.List sortedCopy(java.lang.Iterable)
+ public java.util.List sortedCopy(java.lang.Iterable)





Documentation

- public static List sortedCopy(Iterable iterable)

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:

  • iterable - the elements to be copied and sorted


+ public List sortedCopy(Iterable iterable)

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:

  • iterable - the elements to be copied and sorted






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator, java.util.Iterator)
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableSortedSet copyOf(Comparator comparator, Iterator elements)

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 asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator, java.util.Iterator)
- public static com.google.common.collect.ImmutableSortedSet of()
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableSortedSet copyOf(Comparator comparator, Iterator elements)

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 of()

Description:
Returns the empty immutable multiset.


- public static ImmutableMultiset of(E... elements)

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 asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])





Documentation

- public static ImmutableMultiset copyOf(Iterator elements)

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 copyOf(E[] elements)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])
+ public static T checkNotNull(T)





Documentation

- public static ImmutableMultiset copyOf(Iterator elements)

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 copyOf(E[] elements)

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:

  • reference - an object reference






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator)
+ public static T checkNotNull(T)





Documentation

- public static ImmutableMultiset copyOf(Iterator elements)

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:

  • reference - an object reference






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet of()
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableMultiset of()

Description:
Returns the empty immutable multiset.


+ public ImmutableList asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableMultiset of(E... elements)

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 asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable, java.lang.Comparable)





Documentation

- public static List sortedCopy(Iterable iterable, Comparator comparator)

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:

  • iterable - the elements to be copied and sorted
  • comparator - a comparator capable of sorting the given elements


+ public int compare(Comparable left, Comparable right)

Description:
Specified by: compare in interface Comparator<T>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator)
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable, java.lang.Comparable)





Documentation

- public static List sortedCopy(Iterable iterable, Comparator comparator)

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:

  • iterable - the elements to be copied and sorted
  • comparator - a comparator capable of sorting the given elements


- 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:

  • a - the first byte to compare
  • b - the second byte to compare


+ public int compare(Comparable left, Comparable right)

Description:
Specified by: compare in interface Comparator<T>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.Set newConcurrentHashSet()
+ public static java.util.Set newSetFromMap(java.util.Map)





Documentation

- public static Set newConcurrentHashSet()

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:

  • a newly created, empty thread-safe Set


+ public static Set newSetFromMap(Map map)

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:

  • map - the backing map






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap)
+ public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap)





Documentation

- public static HashMultiset create(int distinctElements)

Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements


+ public static HashMultiset create(int distinctElements)

Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.concurrent.ConcurrentHashMap newConcurrentHashMap()
+ public static java.util.concurrent.ConcurrentMap newConcurrentMap()




- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.HashMap newHashMap()
+ public abstract V put(K, V)





Documentation

+ public V put(K key, V value)

Description:
Specified by: put in interface Map<K,V>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.HashMap newHashMap()
- public abstract boolean put(K, V)
+ public abstract V put(K, V)





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()




- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()




- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()




- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.base.Joiner on(char)
+ public final java.lang.String join(java.lang.Object[])





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.base.Joiner on(char)
+ public static com.google.common.base.Joiner on(char)





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable, java.lang.Comparable)





Documentation

- 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:

  • a - the first byte to compare
  • b - the second byte to compare


+ public int compare(Comparable left, Comparable right)

Description:
Specified by: compare in interface Comparator<T>






- List Of Real code commits has this method mapping:
Migration Rule slf4j-api <==> log4j
Method Mapping
- public abstract org.slf4j.Logger getLogger(java.lang.String)
+ public abstract org.apache.log4j.Logger getLogger(java.lang.String)





Documentation

- 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:

  • name - the name of the Logger to return


+ 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:

  • name - The name of the logger to retrieve.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract org.slf4j.Logger getLogger(java.lang.String)
+ public abstract org.apache.logging.log4j.Logger getLogger(java.lang.String)





Documentation

- 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:

  • name - the name of the Logger to return


+ 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:

  • name - The name of the logger to retrieve.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.String)
+ public static void debug(java.lang.String)





Documentation

- public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.String)
+ public void debug(java.lang.Object)





Documentation

- public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.String, java.lang.Object)
+ public static void debug(java.lang.String)





Documentation

- 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:

  • format - the format string
  • arg - the argument


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void debug(java.lang.String, java.lang.Object)
+ public void debug(java.lang.Object)





Documentation

- 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:

  • format - the format string
  • arg - the argument


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.String)
+ public abstract void error(java.lang.String)





Documentation

- public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ public void error(String message)

Description:
Print a the error message passed as parameter on System.err.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void error(java.lang.String)
+ public void debug(java.lang.Object)





Documentation

- public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.String)
+ public static void debug(java.lang.String)





Documentation

- public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void info(java.lang.String)
+ public void info(java.lang.Object)





Documentation

- public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


- public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void trace(java.lang.String, java.lang.Object)
+ public void trace(java.lang.Object)





Documentation

- 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:

  • format - the format string
  • arg - the argument


+ public void trace(Object message)

Description:
Log a message object with the TRACE level.

Parameters:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void warn(java.lang.String)
+ public static void warn(java.lang.String)





Documentation

- public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • message - the message object to log.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String arrayFormat(java.lang.String, java.lang.Object[])
+ protected abstract org.apache.log4j.Logger getLogger()





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argArray - An array of arguments to be substituted in place of formatting anchors


+ protected Logger getLogger()

Description:
Specified by: getLogger in class AbstractDynamicMBean






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argArray - An array of arguments to be substituted in place of formatting anchors


+ 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:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argArray - An array of arguments to be substituted in place of formatting anchors


+ public void log(String category, LogLevel level, String message, Throwable t)

Description:
Log a message to the Monitor.

Parameters:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String format(java.lang.String, java.lang.Object)
+ protected abstract org.apache.log4j.Logger getLogger()





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


+ protected Logger getLogger()

Description:
Specified by: getLogger in class AbstractDynamicMBean






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


+ 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:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String format(java.lang.String, java.lang.Object)
+ public static void warn(java.lang.String, java.lang.Throwable)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


+ 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:

  • message - the message object to log.
  • t - the exception to log, including its stack trace.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


+ public void log(String category, LogLevel level, String message, Throwable t)

Description:
Log a message to the Monitor.

Parameters:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor


+ 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:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • argument - The argument to be substituted in place of the formatting anchor


- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor


+ 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:

  • message - the message object to log.
  • t - the exception to log, including its stack trace.


+ 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:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String format(java.lang.String, java.lang.Object, java.lang.Object)
+ protected abstract org.apache.log4j.Logger getLogger()





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor


+ protected Logger getLogger()

Description:
Specified by: getLogger in class AbstractDynamicMBean






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor


+ 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:

  • message - the message object to log.
  • t - the exception to log, including its stack trace.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • messagePattern - The message pattern which will be parsed and formatted
  • arg1 - The argument to be substituted in place of the first formatting anchor
  • arg2 - The argument to be substituted in place of the second formatting anchor


+ public void log(String category, LogLevel level, String message, Throwable t)

Description:
Log a message to the Monitor.

Parameters:

  • category - The category to be used
  • level - The log level to apply to the message
  • message - The message
  • NDC -






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract org.apache.log4j.Logger getLogger(java.lang.String)





Documentation

- 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:

  • name - the name of the Logger to return


+ 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:

  • name - The name of the logger to retrieve.






- List Of Real code commits has this method mapping:
Method Mapping
- public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract org.apache.log4j.Logger getLogger(java.lang.String)





Documentation

- 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:

  • name - the name of the Logger to return


+ 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:

  • name - The name of the logger to retrieve.






- List Of Real code commits has this method mapping:
Migration Rule gson <==> jackson
Method Mapping
- 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





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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 var2) throws IOException, JsonProcessingException

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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object that needs to be converted to Json.
  • typeOfSrc - the actual type (fully genericized version) of the source object.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object that needs to be converted to Json.
  • typeOfSrc - the actual type (fully genericized version) of the source object.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object that needs to be converted to Json.
  • typeOfSrc - the actual type (fully genericized version) of the source object.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.Gson create()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException





Documentation

- 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:

  • an instance of Gson configured with the options currently set in this builder


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • an instance of Gson configured with the options currently set in this builder


- 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:

  • src - the object for which Json representation is to be created setting for Gson


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.Gson()
+ public com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()





Documentation

+ public ObjectWriter writerWithDefaultPrettyPrinter()

Description:
Factory method for constructing ObjectWriter that will serialize objects using the default pretty printer for indentation






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.Gson()
+ public org.codehaus.jackson.map.ObjectMapper()




- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


- 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:

  • an instance of Gson configured with the options currently set in this builder


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.node.ArrayNode add(byte[])





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ public ArrayNode add(byte[] v)

Description:
Method for adding specified node at the end of this array.

Return Parameters:

  • This node, to allow chaining






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.ObjectMapper()





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ public Writer append(char c)

Description:
Specified by: append in interface Appendable Overrides: append in class Writer






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder serializeNulls()
+ public com.fasterxml.jackson.databind.util.TokenBuffer$Segment append(int, com.fasterxml.jackson.core.JsonToken)





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ public Writer append(char c)

Description:
Specified by: append in interface Appendable Overrides: append in class Writer






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder serializeNulls()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ public ArrayNode add(byte[] v)

Description:
Method for adding specified node at the end of this array.

Return Parameters:

  • This node, to allow chaining


+ 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






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • pattern - the pattern that dates will be serialized/deserialized to/from


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder setPrettyPrinting()
+ public com.fasterxml.jackson.databind.ObjectWriter writerWithDefaultPrettyPrinter()





Documentation

- 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:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ public ObjectWriter writerWithDefaultPrettyPrinter()

Description:
Factory method for constructing ObjectWriter that will serialize objects using the default pretty printer for indentation






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder setPrettyPrinting()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException





Documentation

- 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:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder()
+ public com.fasterxml.jackson.databind.ObjectMapper()




- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder()
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.GsonBuilder()
- public com.google.gson.Gson create()
+ public com.fasterxml.jackson.databind.ObjectMapper()





Documentation

- 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:

  • an instance of Gson configured with the options currently set in this builder






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • an instance of Gson configured with the options currently set in this builder


+ public ObjectMapper setSerializationInclusion(JsonInclude.Include incl)

Description:
Method for setting defalt POJO property inclusion strategy for serialization.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • an instance of Gson configured with the options currently set in this builder


- 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 var2) throws IOException, JsonProcessingException

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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public GsonBuilder serializeNulls()

Description:
Configure Gson to serialize null fields. By default, Gson omits all fields that are null during serialization.

Return Parameters:

  • a reference to this GsonBuilder object to fulfill the "Builder" pattern


- 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:

  • an instance of Gson configured with the options currently set in this builder


- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


- 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:

  • src - the object for which Json representation is to be created setting for Gson


- 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:

  • This node, to allow chaining


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • pattern - the pattern that dates will be serialized/deserialized to/from


- 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:

  • an instance of Gson configured with the options currently set in this builder


- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonArray()
+ public void serialize(org.codehaus.jackson.JsonGenerator) throws java.io.IOException, org.codehaus.jackson.JsonGenerationException





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonElement get(java.lang.String)
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)





Documentation

- public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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:

  • Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonElement get(java.lang.String)
+ public abstract java.lang.String asText()





Documentation

- public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


- public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.


+ 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:

  • Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject getAsJsonObject()
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)





Documentation

- 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:

  • get this element as a JsonObject.


+ 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:

  • Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject getAsJsonObject()
+ public abstract java.lang.String asText()





Documentation

- 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:

  • get this element as a JsonObject.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • get this element as a JsonObject.


+ 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:

  • in - Input stream used to read JSON content for building the JSON tree.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject getAsJsonObject()
+ public com.fasterxml.jackson.databind.ObjectMapper()





Documentation

- 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject getAsJsonObject(java.lang.String)
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)





Documentation

- public JsonObject getAsJsonObject(String memberName)

Description:
Convenience method to get the specified member as a JsonObject.

Parameters:

  • memberName - name of the member being requested.


+ 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:

  • Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.core.TreeNode createObjectNode()





Documentation

+ public abstract TreeNode createObjectNode()

Description:
Method for construct root level Object nodes for Tree Model instances.






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.databind.node.ObjectNode put(java.lang.String, byte[])





Documentation

+ public ObjectNode put(String fieldName, byte[] v)

Description:
Method for setting value of a field to specified numeric value.

Return Parameters:

  • This node (to allow chaining)






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.databind.ObjectMapper()




- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonObject()
+ public com.fasterxml.jackson.databind.ObjectMapper()
+ public com.fasterxml.jackson.core.TreeNode createObjectNode()





Documentation

+ public abstract TreeNode createObjectNode()

Description:
Method for construct root level Object nodes for Tree Model instances.






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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:

  • property - name of the member.
  • value - the string value associated with the member.


+ 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:

  • This node (to allow chaining)






- List Of Real code commits has this method mapping:
Method Mapping
- public com.google.gson.JsonParser()
+ public com.fasterxml.jackson.databind.ObjectMapper()




- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text


- 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:

  • get this element as a JsonObject.


- public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


- public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.


+ 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:

  • in - Input stream used to read JSON content for building the JSON tree.


+ 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:

  • Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String getAsString()
+ public abstract com.fasterxml.jackson.databind.JsonNode get(int)





Documentation

- public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.


+ 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:

  • Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String getAsString()
+ public abstract java.lang.String asText()





Documentation

- public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String getAsString()
+ public abstract java.lang.String getValue()





Documentation

- public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.


+ public final String getValue()

Description:
Returns unquoted String that this object represents (and offers serialized forms for)






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toJson(com.google.gson.JsonElement)
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.node.ArrayNode add(byte[])





Documentation

- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ public ArrayNode add(byte[] v)

Description:
Method for adding specified node at the end of this array.

Return Parameters:

  • This node, to allow chaining






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.ObjectMapper()





Documentation

- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ public Writer append(char c)

Description:
Specified by: append in interface Appendable Overrides: append in class Writer






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(com.google.gson.JsonElement)
+ public com.fasterxml.jackson.databind.util.TokenBuffer$Segment append(int, com.fasterxml.jackson.core.JsonToken)





Documentation

- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ public Writer append(char c)

Description:
Specified by: append in interface Appendable Overrides: append in class Writer






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(com.google.gson.JsonElement)
+ public java.lang.String writeValueAsString(java.lang.Object) throws com.fasterxml.jackson.core.JsonProcessingException





Documentation

- public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public void addProperty(java.lang.String, java.lang.Character)
+ public com.fasterxml.jackson.databind.node.ObjectNode put(java.lang.String, byte[])





Documentation

- 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:

  • property - name of the member.
  • value - the string value associated with the member.


+ public ObjectNode put(String fieldName, byte[] v)

Description:
Method for setting value of a field to specified numeric value.

Return Parameters:

  • This node (to allow chaining)






- List Of Real code commits has this method mapping:
Migration Rule commons-lang <==> slf4j-api
Method Mapping
- public boolean equals(java.lang.Object)
+ public abstract boolean equals(java.lang.Object)





Documentation

- 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:

  • obj - the object to compare with.


+ public boolean equals(Object var1)

Description:
Markers are considered equal if they have the same name.

Parameters:

  • o -






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • obj - the object to compare with.


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • obj - the object to compare with.


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean equals(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • obj - the object to compare with.


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • obj - the object to compare with.


+ 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:

  • name - the name of the Logger to return


+ public boolean equals(Object var1)

Description:
Markers are considered equal if they have the same name.

Parameters:

  • o -


+ public boolean isWarnEnabled(Marker var1)

Description:
Similar to isWarnEnabled() method except that the marker data is also taken into consideration.

Parameters:

  • marker - The marker data to take into consideration


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • obj - the object to compare with.


+ 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:

  • name - the name of the Logger to return


+ public boolean equals(Object var1)

Description:
Markers are considered equal if they have the same name.

Parameters:

  • o -


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract boolean isDebugEnabled()





Documentation

- 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:

  • the object created by this AtomicInitializer


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract java.lang.String get(java.lang.String)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ 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:

  • the string value identified by the key parameter.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract void error(java.lang.String)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(int)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • the object created by this AtomicInitializer


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract boolean equals(java.lang.Object)





Documentation

+ public boolean equals(Object var1)

Description:
Markers are considered equal if they have the same name.

Parameters:

  • o -






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract boolean isDebugEnabled()





Documentation

+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void add(org.slf4j.Marker)





Documentation

+ public void add(Marker var1)

Description:
Add a reference to another Marker.

Parameters:

  • reference - a reference to another marker






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void error(java.lang.String)





Documentation

+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void info(java.lang.String)





Documentation

+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public abstract void warn(java.lang.String)





Documentation

+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object put(int, java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public abstract void trace(java.lang.String)





Documentation

- public String toString()

Description:
Returns the String value of this mutable.

Return Parameters:

  • the mutable value as a string


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- public String toString()

Description:
Returns the String value of this mutable.

Return Parameters:

  • the mutable value as a 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString(java.lang.String)
+ public abstract void warn(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- 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:

  • format - the format string, optionally containing %1$s and %2$s, not null


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public org.apache.commons.lang.text.StrBuilder append(double)
+ public abstract void debug(java.lang.String)





Documentation

- public HashCodeBuilder append(double value)

Description:
Append a hashCode for an Object.

Parameters:

  • object - the Object to add to the hashCode


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public org.apache.commons.lang.text.StrBuilder append(double)
+ public abstract void error(java.lang.String)





Documentation

- public HashCodeBuilder append(double value)

Description:
Append a hashCode for an Object.

Parameters:

  • object - the Object to add to the hashCode


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public org.apache.commons.lang3.text.StrBuilder replaceAll(org.apache.commons.lang3.text.StrMatcher, java.lang.String)
+ public abstract void error(java.lang.String)





Documentation

- public StrBuilder replaceAll(StrMatcher matcher, String replaceStr)

Description:
Replaces the search character with the replace character throughout the builder.

Parameters:

  • search - the search character
  • replace - the replace character


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public StrBuilder replaceAll(StrMatcher matcher, String replaceStr)

Description:
Replaces the search character with the replace character throughout the builder.

Parameters:

  • search - the search character
  • replace - the replace character


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public StrBuilder replaceAll(StrMatcher matcher, String replaceStr)

Description:
Replaces the search character with the replace character throughout the builder.

Parameters:

  • search - the search character
  • replace - the replace character


+ 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:

  • format - the format string
  • arg - the argument


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isBlank(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isEmpty(boolean[])
+ public abstract void trace(java.lang.String)





Documentation

- 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:

  • str - the String to check, may be null


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isEmpty(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • str - the String to check, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isEmpty(java.lang.CharSequence)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isEmpty(java.lang.String)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • str - the String to check, may be null


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • str - the String to check, may be null


- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


- 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:

  • obj - the object to compare with.


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void add(Marker var1)

Description:
Add a reference to another Marker.

Parameters:

  • reference - a reference to another marker


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ public boolean equals(Object var1)

Description:
Markers are considered equal if they have the same name.

Parameters:

  • o -


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNotBlank(java.lang.CharSequence)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNotBlank(java.lang.CharSequence)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNotBlank(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


- 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:

  • cs - the CharSequence to check, may be null


+ 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:

  • name - the name of the Logger to return


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNotBlank(java.lang.String)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • str - the String to check, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNotBlank(java.lang.String)
+ public abstract void error(java.lang.String)





Documentation

- 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:

  • str - the String to check, may be null


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • str - the String to check, may be null


- public HashCodeBuilder append(double value)

Description:
Append a hashCode for an Object.

Parameters:

  • object - the Object to add to the hashCode


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNumeric(java.lang.CharSequence)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNumeric(java.lang.CharSequence)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean isNumeric(java.lang.CharSequence)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • cs - the CharSequence to check, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to add the element to, may be null
  • index - the position of the new object
  • element - the object to add


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to add the element to, may be null
  • index - the position of the new object
  • element - the object to add


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to add the element to, may be null
  • index - the position of the new object
  • element - the object to add


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] add(boolean[], int, boolean)
+ public abstract void warn(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to add the element to, may be null
  • index - the position of the new object
  • element - the object to add


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] clone(boolean[])
+ public abstract void trace(java.lang.String)





Documentation

- 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:

  • array - the array to clone, may be null


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] clone(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • array - the array to clone, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • array - the array to clone, may be null


- 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:

  • cs - the CharSequence to check, may be null


- 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:

  • str - the String to check, may be null


- public String toString()

Description:
Returns the String value of this mutable.

Return Parameters:

  • the mutable value as a 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:

  • name - the name of the Logger to return


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static boolean[] clone(boolean[])
- public static boolean isEmpty(boolean[])
- public java.lang.String toString()
+ public abstract void trace(java.lang.String)





Documentation

- 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:

  • array - the array to clone, may be null


- 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:

  • str - the String to check, may be null


- public String toString()

Description:
Returns the String value of this mutable.

Return Parameters:

  • the mutable value as a string


+ public void trace(String var1)

Description:
Log a message at the TRACE level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String getSimpleName(java.lang.Class)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public static String getSimpleName(Class cls)

Description:
Null-safe version of aClass.getSimpleName()

Parameters:

  • cls - the class for which to get the simple name.


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract boolean isDebugEnabled()





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract java.lang.String get(java.lang.String)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ 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:

  • the string value identified by the key parameter.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void error(java.lang.String)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String replaceChars(java.lang.String, java.lang.String, java.lang.String)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • str - String to replace characters in, may be null
  • searchChar - the character to search for, may be null
  • replaceChar - the character to replace, may be null


- 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:

  • strs - the array to remove whitespace from, may be null


- 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:

  • str - the String to parse, may be null


- 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:

  • the object created by this AtomicInitializer


+ 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:

  • name - the name of the Logger to return


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ 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:

  • format - the format string
  • arg - the argument


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • the string value identified by the key parameter.


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toString(java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • array - the array to get a toString for, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toString(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to get a toString for, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract boolean isDebugEnabled()





Documentation

- 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:

  • str - the String to parse, may be null


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)





Documentation

- 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:

  • str - the String to parse, may be null


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract java.lang.String get(java.lang.String)





Documentation

- 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:

  • str - the String to parse, may be null


+ 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:

  • the string value identified by the key parameter.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • str - the String to parse, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • str - the String to parse, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract void error(java.lang.String)





Documentation

- 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:

  • str - the String to parse, may be null


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • str - the String to parse, may be null


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- 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:

  • str - the String to parse, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • str - the String to parse, may be null


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • str - the String to parse, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String, java.lang.String)
+ public abstract java.util.Iterator iterator()





Documentation

- 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:

  • str - the String to parse, may be null
  • separatorChar - the character used as the delimiter


+ 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:

  • Iterator over the references of this marker






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] split(java.lang.String, java.lang.String)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- 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:

  • str - the String to parse, may be null
  • separatorChar - the character used as the delimiter


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • str - the String to parse, may be null
  • separatorChar - the character used as the delimiter


+ 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:

  • format - the format string
  • arg - the argument


+ 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:

  • Iterator over the references of this marker






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract boolean isDebugEnabled()





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract boolean isDebugEnabled(org.slf4j.Marker)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ public boolean isDebugEnabled(Marker var1)

Description:
Similar to isDebugEnabled() method except that the marker data is also taken into account.

Parameters:

  • marker - The marker data to take into consideration






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract java.lang.String get(java.lang.String)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ 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:

  • the string value identified by the key parameter.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void error(java.lang.String)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void info(java.lang.String)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void info(java.lang.String, java.lang.Object)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public abstract void warn(java.lang.String)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String[] stripAll(java.lang.String[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • strs - the array to remove whitespace from, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reverse(boolean[])
+ public abstract void debug(java.lang.String)





Documentation

- 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:

  • array - the array to reverse, may be null


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reverse(boolean[])
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to reverse, may be null


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reverse(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- 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:

  • array - the array to reverse, may be null


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- public static void reverse(boolean[])
+ public static org.slf4j.Logger getLogger(java.lang.Class)
+ public abstract void debug(java.lang.String, java.lang.Object)





Documentation

- 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:

  • array - the array to reverse, may be null


+ 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:

  • name - the name of the Logger to return


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • array - the array to reverse, may be null


- 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:

  • array - the array to get a toString for, may be null


+ 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:

  • name - the name of the Logger to return


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract boolean equals(java.lang.Object)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public boolean equals(Object var1)

Description:
Markers are considered equal if they have the same name.

Parameters:

  • o -






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract boolean isDebugEnabled()





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void add(org.slf4j.Marker)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public void add(Marker var1)

Description:
Add a reference to another Marker.

Parameters:

  • reference - a reference to another marker






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void debug(java.lang.String)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public void debug(String var1)

Description:
Log a message at the DEBUG level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void debug(java.lang.String, java.lang.Object, java.lang.Object)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void error(java.lang.String)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void error(java.lang.String, java.lang.Object)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ 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:

  • format - the format string
  • arg - the argument






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void info(java.lang.String)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void put(java.lang.String, java.lang.String)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public abstract void warn(java.lang.String)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ public void warn(String var1)

Description:
Log a message at the WARN level.

Parameters:

  • msg - the message string to be logged






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.Object)
+ public static org.slf4j.Logger getLogger(java.lang.Class)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ 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:

  • name - the name of the Logger to return






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public void add(Object obj)

Description:
Adds a value.

Parameters:

  • operand - the value to add


+ 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:

  • format - the format string
  • arg1 - the first argument
  • arg2 - the second argument


+ public void info(String var1)

Description:
Log a message at the INFO level.

Parameters:

  • msg - the message string to be logged


+ public void error(String var1)

Description:
Log a message at the ERROR level.

Parameters:

  • msg - the message string to be logged


+ 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:

  • format - the format string
  • arg - the argument


+ public void add(Marker var1)

Description:
Add a reference to another Marker.

Parameters:

  • reference - a reference to another marker


+ public boolean isDebugEnabled()

Description:
Is the logger instance enabled for the DEBUG level?

Return Parameters:

  • True if this Logger is enabled for the DEBUG level, false otherwise.


+ 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.






- List Of Real code commits has this method mapping:
Migration Rule json <==> gson
Method Mapping
- public boolean has(java.lang.String)
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

- public boolean has(String key)

Description:
Determine if the JSONObject contains a specific key.

Parameters:

  • key - A key string.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean has(java.lang.String)
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)





Documentation

- public boolean has(String key)

Description:
Determine if the JSONObject contains a specific key.

Parameters:

  • key - A key string.


+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public boolean has(java.lang.String)
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- public boolean has(String key)

Description:
Determine if the JSONObject contains a specific key.

Parameters:

  • key - A key string.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public int getInt(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public int getInt(String key) throws JSONException

Description:
Get the int value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public int getInt(java.lang.String) throws org.json.JSONException
+ public int getAsInt()





Documentation

- public int getInt(String key) throws JSONException

Description:
Get the int value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public int getAsInt()

Description:
convenience method to get this array as an integer if it contains a single element.

Return Parameters:

  • get this element as an integer if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public int getInt(String key) throws JSONException

Description:
Get the int value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public int getInt(String key) throws JSONException

Description:
Get the int value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public int getAsInt()

Description:
convenience method to get this array as an integer if it contains a single element.

Return Parameters:

  • get this element as an integer if it is single element array.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public int length()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

- public int length()

Description:
Get the number of keys stored in the JSONObject.

Return Parameters:

  • The number of keys in the JSONObject.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public int length()
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)





Documentation

- public int length()

Description:
Get the number of keys stored in the JSONObject.

Return Parameters:

  • The number of keys in the JSONObject.


+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public int length()
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- public int length()

Description:
Get the number of keys stored in the JSONObject.

Return Parameters:

  • The number of keys in the JSONObject.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • The writer.


+ 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:

  • src - the object for which Json representation is to be created setting for Gson
  • writer - Writer to which the Json representation needs to be written






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException





Documentation

- public Object get(String key) throws JSONException

Description:
Get the object value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(int i)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonArray getAsJsonArray()





Documentation

- public Object get(String key) throws JSONException

Description:
Get the object value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ 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:

  • get this element as a JsonArray.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public Object get(String key) throws JSONException

Description:
Get the object value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object get(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonParser()





Documentation

- public Object get(String key) throws JSONException

Description:
Get the object value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object nextValue() throws org.json.JSONException
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException





Documentation

- 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:

  • An object.


+ public JsonElement get(int i)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object nextValue() throws org.json.JSONException
+ public com.google.gson.JsonArray getAsJsonArray()





Documentation

- 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:

  • An object.


+ 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:

  • get this element as a JsonArray.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • An object.


+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.Object nextValue() throws org.json.JSONException
+ public com.google.gson.JsonParser()





Documentation

- 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:

  • An object.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String get(int)
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String get(int)
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public String get(int i)

Description:
??? i - 0-based ???


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • get this element as a JsonObject.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public String toString()

Description:
Returns a String representation of this element.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • json - JSON text


+ 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:

  • get this element as a JsonObject.


+ public JsonObject getAsJsonObject(String memberName)

Description:
Convenience method to get the specified member as a JsonObject.

Parameters:

  • memberName - name of the member being requested.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String getString(java.lang.String) throws org.json.JSONException
+ public java.lang.String getAsString()





Documentation

- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toJSONString()
+ public java.lang.String toString()





Documentation

- public String toJSONString()

Description:
???? ?? JSONAware ?? toJSONString


+ public String toString()

Description:
Returns a String representation of this element.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public com.google.gson.Gson()





Documentation

- public String toString()

Description:
??? ? java.util.AbstractCollection ?? toString






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • json - JSON text


+ 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:

  • get this element as a JsonObject.


+ public JsonObject getAsJsonObject(String memberName)

Description:
Convenience method to get the specified member as a JsonObject.

Parameters:

  • memberName - name of the member being requested.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString(int) throws org.json.JSONException
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.


+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString(java.lang.String)
+ public V put(K, V)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString(java.lang.String)
+ public void add(com.google.gson.JsonElement)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.


+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- public long getLong(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public long getLong(String key) throws JSONException

Description:
Get the long value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public long getLong(java.lang.String) throws org.json.JSONException
+ public long getAsLong()





Documentation

- public long getLong(String key) throws JSONException

Description:
Get the long value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public long getAsLong()

Description:
convenience method to get this array as a long if it contains a single element.

Return Parameters:

  • get this element as a long if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonArray getAsJsonArray()





Documentation

- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ 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:

  • get this element as a JsonArray.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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:

  • get this element as a JsonArray.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray getJSONArray(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray put(int, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray()
+ public com.google.gson.Gson()




- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray()
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)





Documentation

+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONArray()
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONException(java.lang.Throwable)
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONException(java.lang.Throwable)
+ public long getAsLong()





Documentation

+ public long getAsLong()

Description:
convenience method to get this array as a long if it contains a single element.

Return Parameters:

  • get this element as a long if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public long getLong(String key) throws JSONException

Description:
Get the long value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public long getAsLong()

Description:
convenience method to get this array as a long if it contains a single element.

Return Parameters:

  • get this element as a long if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject accumulate(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.Gson()





Documentation

- 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:

  • key - A key string.
  • value - An object to be accumulated under the key.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject getJSONObject(int) throws org.json.JSONException
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject getJSONObject(int) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject getJSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ 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:

  • get this element as a JsonObject.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.Gson()





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject put(java.lang.String, java.lang.Object) throws org.json.JSONException
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject()
+ public com.google.gson.Gson()




- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject()
+ public com.google.gson.JsonElement toJsonTree(java.lang.Object, java.lang.reflect.Type)





Documentation

+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject()
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject()
+ public com.google.gson.JsonObject()




- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject()
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


- 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:

  • indentFactor - The number of spaces to add to each level of indentation.


+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


- 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:

  • key - A key string.
  • value - A Collection value.


- public boolean has(String key)

Description:
Determine if the JSONObject contains a specific key.

Parameters:

  • key - A key string.


- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


- public int length()

Description:
Get the number of keys stored in the JSONObject.

Return Parameters:

  • The number of keys in the JSONObject.


- public JSONObject getJSONObject(String key) throws JSONException

Description:
Get the JSONObject associated with an index.

Parameters:

  • index - subscript


+ 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:

  • src - the object for which JSON representation is to be created
  • typeOfSrc - The specific genericized type of src. You can obtain this type by using the TypeToken class. For example, to get the type for Collection, you should use: Type typeOfSrc = new TypeToken>(){}.getType();


+ 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:

  • get this element as a JsonObject.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


- 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:

  • key - A key string.
  • value - A Collection value.


- public String getString(String key) throws JSONException

Description:
Get the string associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


- public JSONArray getJSONArray(String key) throws JSONException

Description:
Get the JSONArray associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


- public int length()

Description:
Get the number of keys stored in the JSONObject.

Return Parameters:

  • The number of keys in the JSONObject.


+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • key - A key string.
  • value - A Collection value.


- 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:

  • key - A key string.
  • value - An object to be accumulated under the key.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.Gson()




- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public com.google.gson.JsonParser()




- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONObject(java.lang.String) throws org.json.JSONException
+ public final java.lang.String toJson(T) throws java.io.IOException





Documentation

+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONTokener(java.lang.String)
+ java.lang.Object get(java.lang.Object) throws java.lang.IllegalAccessException





Documentation

+ public JsonElement get(int i)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONTokener(java.lang.String)
+ public com.google.gson.JsonArray getAsJsonArray()





Documentation

+ 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:

  • get this element as a JsonArray.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.JSONTokener(java.lang.String)
+ public com.google.gson.JsonParser()




- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • An object.


- public Object get(String key) throws JSONException

Description:
Get the object value associated with an index.

Parameters:

  • index - The index must be between 0 and length() - 1.


+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text


+ 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:

  • get this element as a JsonArray.


+ public JsonElement get(int i)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonArray()




- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

+ 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:

  • type - the type definition for the type adapter being registered
  • typeAdapter - This object must implement at least one of the TypeAdapter, InstanceCreator, JsonSerializer, and a JsonDeserializer interfaces.


+ 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:

  • an instance of Gson configured with the options currently set in this builder






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

+ 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:

  • property - name of the member.
  • value - the string value associated with the member.


+ 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.JSONObject()
+ public V put(K, V)




- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • property - name of the member.
  • value - the string value associated with the member.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.JSONObject()
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonObject()
+ public com.google.gson.JsonArray()




- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.


+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()




- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)





Documentation

+ 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:

  • property - name of the member.
  • value - the string value associated with the member.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonParser()




- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

+ public static JsonElement parse(JsonReader reader) throws JsonParseException

Description:
Parses the specified JSON string into a parse tree

Parameters:

  • json - JSON text


+ 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public void addProperty(java.lang.String, java.lang.Character)





Documentation

+ 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:

  • property - name of the member.
  • value - the string value associated with the member.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.Gson()
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.JsonObject()





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public void add(java.lang.String, com.google.gson.JsonElement)





Documentation

- 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(int, java.lang.String)
+ public void add(com.google.gson.JsonElement)





Documentation

+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public V put(K, V)
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)





Documentation

+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(java.lang.String, com.google.gson.JsonElement)





Documentation

+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public void add(java.lang.String, com.google.gson.JsonElement)





Documentation

+ 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Migration Rule json <==> gson
Method Mapping
- public java.lang.String get(int)
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String get(int)
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public String get(int i)

Description:
??? i - 0-based ???


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • get this element as a JsonObject.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public String toString()

Description:
Returns a String representation of this element.






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • json - JSON text


+ 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:

  • get this element as a JsonObject.


+ public JsonObject getAsJsonObject(String memberName)

Description:
Convenience method to get the specified member as a JsonObject.

Parameters:

  • memberName - name of the member being requested.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toJSONString()
+ public java.lang.String toString()





Documentation

- public String toJSONString()

Description:
???? ?? JSONAware ?? toJSONString


+ public String toString()

Description:
Returns a String representation of this element.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public com.google.gson.JsonElement get(java.lang.String)





Documentation

- public String toString()

Description:
??? ? java.util.AbstractCollection ?? toString


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- 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





Documentation

- 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:

  • json - JSON text






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public com.google.gson.JsonObject getAsJsonObject()





Documentation

- 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:

  • get this element as a JsonObject.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public com.google.gson.JsonObject getAsJsonObject(java.lang.String)





Documentation

- 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:

  • memberName - name of the member being requested.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public com.google.gson.JsonParser()





Documentation

- public String toString()

Description:
??? ? java.util.AbstractCollection ?? toString






- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

- 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:

  • json - JSON text


+ 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:

  • get this element as a JsonObject.


+ public JsonObject getAsJsonObject(String memberName)

Description:
Convenience method to get the specified member as a JsonObject.

Parameters:

  • memberName - name of the member being requested.


+ public String getAsString()

Description:
convenience method to get this array as a String if it contains a single element.

Return Parameters:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public java.lang.String getAsString()





Documentation

- 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:

  • get this element as a String if it is single element array.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString()
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString(java.lang.String)
+ public V put(K, V)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String toString(java.lang.String)
+ public void add(com.google.gson.JsonElement)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.


+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonArray()




- List Of Real code commits has this method mapping:
Method Mapping
- 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()





Documentation

+ 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:

  • type - the type definition for the type adapter being registered
  • typeAdapter - This object must implement at least one of the TypeAdapter, InstanceCreator, JsonSerializer, and a JsonDeserializer interfaces.


+ 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:

  • an instance of Gson configured with the options currently set in this builder






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

+ 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:

  • property - name of the member.
  • value - the string value associated with the member.


+ 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.JSONObject()
+ public V put(K, V)




- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • property - name of the member.
  • value - the string value associated with the member.


+ public JsonElement get(String memberName)

Description:
Returns the ith element of the array.

Parameters:

  • i - the index of the element that is being sought.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.JSONObject()
- public org.json.simple.JSONArray()
+ public com.google.gson.JsonObject()
+ public com.google.gson.JsonArray()




- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • indentFactor - The number of spaces to add to each level of indentation.


+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- 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)





Documentation

- 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public T fromJson(com.google.gson.JsonElement, java.lang.reflect.Type) throws com.google.gson.JsonSyntaxException





Documentation

+ 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()




- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public com.google.gson.JsonObject()
+ public void addProperty(java.lang.String, java.lang.Character)





Documentation

+ 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:

  • property - name of the member.
  • value - the string value associated with the member.






- List Of Real code commits has this method mapping:
Method Mapping
- public org.json.simple.parser.JSONParser()
+ public void addProperty(java.lang.String, java.lang.Character)





Documentation

+ 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:

  • property - name of the member.
  • value - the string value associated with the member.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.Gson()
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public com.google.gson.JsonObject()





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

- 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.lang.String toJSONString(java.lang.Object)
+ public void add(java.lang.String, com.google.gson.JsonElement)





Documentation

- 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public V put(K, V)
+ public java.lang.String toJson(com.google.gson.JsonElement)





Documentation

+ 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:

  • src - the object for which Json representation is to be created setting for Gson






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)





Documentation

+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public void add(com.google.gson.JsonElement)
+ public void add(java.lang.String, com.google.gson.JsonElement)





Documentation

+ public void add(JsonElement element)

Description:
Adds the specified element to self.

Parameters:

  • element - the element that needs to be added to the array.


+ 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Method Mapping
- public void add(java.lang.String)
+ public void add(java.lang.String, com.google.gson.JsonElement)





Documentation

+ 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:

  • property - name of the member.
  • value - the member object.






- List Of Real code commits has this method mapping:
Migration Rule google-collect <==> guava
Method Mapping
- public abstract boolean isEmpty()
+ public static void checkArgument(boolean)





Documentation

- 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:

  • expression - a boolean expression






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract boolean put(K, V)
+ public abstract V put(K, V)





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract int size()
+ public abstract long size()





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract java.util.Collection get(K)
+ public abstract V getIfPresent(java.lang.Object)





Documentation

- public SortedSet get(K key)

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:

  • key - key to search for in multimap






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract V get(java.lang.Object)
+ protected abstract E get(int)





Documentation

- public Collection get(Object key)

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:

  • key - key to search for in multimap


+ public E get(int index)

Description:
Specified by: get in interface List<E>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract V put(K, V)
+ public abstract V put(K, V)





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public abstract void clear()
+ public abstract void invalidateAll()





Documentation

- public void clear()

Description:
Removes all key-value pairs from the multimap.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String join(java.util.Map)
+ public final java.lang.String join(java.lang.Object[])





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public java.lang.String join(java.util.Map)
+ public static com.google.common.base.Joiner on(char)





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.TreeMultiset create(java.lang.Iterable)
+ public static com.google.common.collect.TreeMultiset create(java.lang.Iterable)





Documentation

- public static HashMultiset create(Iterable elements)

Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements


+ public static HashMultiset create(Iterable elements)

Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.List sortedCopy(java.lang.Iterable)
+ public java.util.List sortedCopy(java.lang.Iterable)





Documentation

- public static List sortedCopy(Iterable iterable)

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:

  • iterable - the elements to be copied and sorted


+ public List sortedCopy(Iterable iterable)

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:

  • iterable - the elements to be copied and sorted






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator, java.util.Iterator)
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableSortedSet copyOf(Comparator comparator, Iterator elements)

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 asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Comparator, java.util.Iterator)
- public static com.google.common.collect.ImmutableSortedSet of()
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableSortedSet copyOf(Comparator comparator, Iterator elements)

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 of()

Description:
Returns the empty immutable multiset.


- public static ImmutableMultiset of(E... elements)

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 asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])





Documentation

- public static ImmutableMultiset copyOf(Iterator elements)

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 copyOf(E[] elements)

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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator)
+ public static com.google.common.collect.ImmutableSortedSet copyOf(E[])
+ public static T checkNotNull(T)





Documentation

- public static ImmutableMultiset copyOf(Iterator elements)

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 copyOf(E[] elements)

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:

  • reference - an object reference






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet copyOf(java.util.Iterator)
+ public static T checkNotNull(T)





Documentation

- public static ImmutableMultiset copyOf(Iterator elements)

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:

  • reference - an object reference






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet of()
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableMultiset of()

Description:
Returns the empty immutable multiset.


+ public ImmutableList asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.ImmutableSortedSet of(E...)
+ public com.google.common.collect.ImmutableList asList()





Documentation

- public static ImmutableMultiset of(E... elements)

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 asList()

Description:
Returns this list instance.






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable, java.lang.Comparable)





Documentation

- public static List sortedCopy(Iterable iterable, Comparator comparator)

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:

  • iterable - the elements to be copied and sorted
  • comparator - a comparator capable of sorting the given elements


+ public int compare(Comparable left, Comparable right)

Description:
Specified by: compare in interface Comparator<T>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.List sortedCopy(java.lang.Iterable, java.util.Comparator)
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable, java.lang.Comparable)





Documentation

- public static List sortedCopy(Iterable iterable, Comparator comparator)

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:

  • iterable - the elements to be copied and sorted
  • comparator - a comparator capable of sorting the given elements


- 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:

  • a - the first byte to compare
  • b - the second byte to compare


+ public int compare(Comparable left, Comparable right)

Description:
Specified by: compare in interface Comparator<T>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.Set newConcurrentHashSet()
+ public static java.util.Set newSetFromMap(java.util.Map)





Documentation

- public static Set newConcurrentHashSet()

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:

  • a newly created, empty thread-safe Set


+ public static Set newSetFromMap(Map map)

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:

  • map - the backing map






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap)
+ public static com.google.common.collect.TreeMultimap create(com.google.common.collect.Multimap)





Documentation

- public static HashMultiset create(int distinctElements)

Description:
Creates a new empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements


+ public static HashMultiset create(int distinctElements)

Description:
Creates a new, empty HashMultiset with the specified expected number of distinct elements.

Parameters:

  • distinctElements - the expected number of distinct elements






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.concurrent.ConcurrentHashMap newConcurrentHashMap()
+ public static java.util.concurrent.ConcurrentMap newConcurrentMap()




- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.HashMap newHashMap()
+ public abstract V put(K, V)





Documentation

+ public V put(K key, V value)

Description:
Specified by: put in interface Map<K,V>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.HashMap newHashMap()
- public abstract boolean put(K, V)
+ public abstract V put(K, V)





Documentation

- 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>






- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()




- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()




- List Of Real code commits has this method mapping:
Method Mapping
- public static java.util.LinkedHashMap newLinkedHashMap()
+ public com.google.common.collect.MapMaker()
+ public abstract java.util.concurrent.ConcurrentMap makeMap()




- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.base.Joiner on(char)
+ public final java.lang.String join(java.lang.Object[])





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static com.google.common.base.Joiner on(char)
+ public static com.google.common.base.Joiner on(char)





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- 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[])





Documentation

- 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.






- List Of Real code commits has this method mapping:
Method Mapping
- public static int compare(boolean, boolean)
+ public abstract com.google.common.collect.ComparisonChain compare(java.lang.Comparable, java.lang.Comparable)





Documentation

- 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:

  • a - the first byte to compare
  • b - the second byte to compare


+ public int compare(Comparable left, Comparable right)

Description:
Specified by: compare in interface Comparator<T>






- List Of Real code commits has this method mapping: