Interface and Description |
---|
org.mockito.ReturnValues
Instead, please use
Answer interface
In rare cases your code might not compile with recent deprecation & changes. Very sorry for inconvenience but it had to be done in order to keep framework consistent. Why it is deprecated? ReturnValues is being replaced by Answer for better consistency & interoperability of the framework. Answer interface has been in Mockito for a while and it has the same responsibility as ReturnValues. There's no point in mainting exactly the same interfaces. Configures return values for an unstubbed invocation
Can be used in |
Class and Description |
---|
org.mockito.runners.MockitoJUnit44Runner |
Enum and Description |
---|
org.mockito.internal.stubbing.defaultanswers.Answers |
Annotation Type and Description |
---|
org.mockito.MockitoAnnotations.Mock |
Field and Description |
---|
org.eclipse.epsilon.emc.emf.EmfModel.PROPERTY_IS_METAMODEL_FILE_BASED
EmfModel.PROPERTY_METAMODEL_URI and EmfModel.PROPERTY_FILE_BASED_METAMODEL_URI are now
interpreted as comma-separated lists of 0+ metamodel locations, and it is allowed to mix both types
of metamodels now. This property is no longer used. |
org.eclipse.epsilon.emc.emf.EmfModel.PROPERTY_METAMODEL_FILE
Replaced by
EmfModel.PROPERTY_FILE_BASED_METAMODEL_URI .
This property will be removed in a future release of Epsilon. |
org.eclipse.epsilon.emc.emf.EmfModel.PROPERTY_MODEL_FILE
Replaced by
EmfModel.PROPERTY_MODEL_URI .
This property will be removed in a future release of Epsilon. |
Method and Description |
---|
org.eclipse.epsilon.concordance.reporter.model.ModelChangeReporter.addListener(ModelChangeListener) |
org.mockito.configuration.AnnotationEngine.createMockFor(Annotation, Field) |
org.eclipse.epsilon.eol.execute.context.FrameStack.enter(FrameType, ModuleElement, Variable...)
Use
#enterLocal(FrameType, AST, Variable...) instead.
This method will be removed from a future version of Epsilon. |
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(ModuleElement, IEolContext)
Use
ExecutorFactory.execute(ModuleElement, IEolContext) instead. |
org.eclipse.epsilon.common.dt.launching.AbstractSourceConfigurationTab.getFileExtension()
We don't care about file extensions any more
|
org.eclipse.epsilon.eol.execute.context.FrameStack.getGlobals()
Use the designated methods for manipulating global variables
(e.g.
#enterGlobal(FrameType, AST, Variable...) ,
FrameStack.putGlobal(Variable) and FrameStack.getGlobal(String) ).
If no appropriate method exists, please open a bug report to
request it. This method will be removed in a future version
of Epsilon. |
org.eclipse.epsilon.emc.emf.AbstractEmfModel.getModelImpl()
Use getResource() instead
|
org.eclipse.epsilon.antlr.postprocessor.model.antlrAst.impl.AntlrAstFactoryImpl.getPackage() |
org.eclipse.epsilon.hutn.model.hutn.impl.HutnFactoryImpl.getPackage() |
org.eclipse.epsilon.hutn.model.hutnAntlrAst.impl.HutnAntlrAstFactoryImpl.getPackage() |
org.eclipse.epsilon.hutn.model.config.hutnConfig.impl.HutnConfigFactoryImpl.getPackage() |
org.eclipse.epsilon.emc.muddle.impl.MuddleFactoryImpl.getPackage() |
org.eclipse.epsilon.egl.dt.traceability.fine.emf.textlink.impl.TextlinkFactoryImpl.getPackage() |
org.eclipse.epsilon.emc.emf.virtual.impl.VirtualFactoryImpl.getPackage() |
org.eclipse.epsilon.hutn.test.model.bankAccounts.impl.BankAccountsFactoryImpl.getPackage() |
org.eclipse.epsilon.hutn.test.model.families.impl.FamiliesFactoryImpl.getPackage() |
org.eclipse.epsilon.eol.execute.prettyprinting.PrettyPrinterManager.getPrettyPrinterFor(Object)
External clients should use print(Object object) instead
|
org.mockito.configuration.IMockitoConfiguration.getReturnValues()
Please use
IMockitoConfiguration.getDefaultAnswer()
Steps: 1. Leave the implementation of getReturnValues() method empty - it's not going to be used anyway. 2. Implement getDefaultAnswer() instead. In rare cases your code might not compile with recent deprecation & changes. Very sorry for inconvenience but it had to be done in order to keep framework consistent.
See javadoc Allows configuring the default return values of unstubbed invocations
See javadoc for |
org.mockito.configuration.DefaultMockitoConfiguration.getReturnValues() |
org.eclipse.epsilon.emc.emf.EmfModel.isMetamodelFileBased()
This value is no longer used to load models: it is only
kept for backwards compatibility, and it now simply indicates whether
a file metamodel was loaded at all, or not.
|
org.eclipse.epsilon.eol.execute.context.FrameStack.leave(ModuleElement)
Use
#leaveLocal(AST) instead.
This method will be removed from a future version of Epsilon. |
org.eclipse.epsilon.eol.execute.context.FrameStack.leave(ModuleElement, boolean)
Use
#leaveLocal(AST, boolean) instead.
This method will be removed from a future version of Epsilon. |
org.mockito.Mockito.mock(Class<T>, ReturnValues)
Please use mock(Foo.class, defaultAnswer);
See Why it is deprecated? ReturnValues is being replaced by Answer for better consistency & interoperability of the framework. Answer interface has been in Mockito for a while and it has the same responsibility as ReturnValues. There's no point in mainting exactly the same interfaces. Creates mock with a specified strategy for its return values. It's quite advanced feature and typically you don't need it to write decent tests. However it can be helpful when working with legacy systems. Obviously return values are used only when you don't stub the method call. Foo mock = mock(Foo.class, Mockito.RETURNS_SMART_NULLS); Foo mockTwo = mock(Foo.class, new YourOwnReturnValues()); See examples in javadoc for |
org.eclipse.epsilon.emc.emf.EmfModel.setMetamodelFileBased(boolean)
This value is no longer honored anymore. Please populate the
lists in
EmfModel.getMetamodelUris() (URI-based metamodels)
and EmfModel.getMetamodelFileUris() (file-based metamodels)
appropriately instead. |
org.eclipse.epsilon.egl.EglPersistentTemplate.store(String)
Use generate(path) instead, or generate(path, false, false),
if you really know what you are doing :-)
|
org.eclipse.epsilon.egl.EglPersistentTemplate.store(String, boolean)
Use generate(path) instead, or generate(path, overwrite, false),
if you really know what you are doing :-)
|
org.mockito.Mockito.stubVoid(T)
Use
Mockito.doThrow(Throwable) method for stubbing voids |
Constructor and Description |
---|
org.mockito.ArgumentCaptor()
Please use factory method
ArgumentCaptor.forClass(Class) to create captors
This is required to avoid NullPointerExceptions when autoUnboxing primitive types. See issue 99. Example: ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); verify(mock).doSomething(argument.capture()); assertEquals("John", argument.getValue().getName()); |
org.eclipse.epsilon.common.dt.editor.DefaultDamagerRepairer2(ITokenScanner, TextAttribute)
use DefaultDamagerRepairer(ITokenScanner) instead
|
org.eclipse.epsilon.concordance.index.InMemoryConcordanceIndex(ModelChangeReporter)
WARNING: This is a partial implementation of an in-memory index. It may not work as expected.
|
Copyright © 2018. All rights reserved.