congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TestSuite.createVelocityContext
Code IndexAdd Tabnine to your IDE (free)

How to use
createVelocityContext
method
in
net.bpelunit.framework.model.test.TestSuite

Best Java code snippets using net.bpelunit.framework.model.test.TestSuite.createVelocityContext (Showing top 1 results out of 315)

origin: net.bpelunit/framework

/**
 * Creates a new Velocity context that extends the VelocityContext of the
 * test suite with information about this test case. To keep test cases
 * isolated, the context does not wrap the test suite context, but clones
 * and extends it. To reduce overhead, the test suite context is cached so
 * it is only produced the first time.
 *
 * @return VelocityContext with information about the test suite and test
 * case.
 * @throws DataSourceException 
 * */
public Context createVelocityContext() throws DataSourceException {
  if (fTestSuiteVelocityContext == null) {
    fTestSuiteVelocityContext = getSuite().createVelocityContext();
  }
  Context ctx = CLONER.deepClone(fTestSuiteVelocityContext);
  ctx.put("testCaseName", getRawName());
  if (fDataSource != null) {
    DataSourceUtil.initializeContext(ctx, fDataSource, fRowIndex);
  }
  if (fSetUpVelocityScript != null) {
    StringWriter sW = new StringWriter();
    Velocity.evaluate(ctx, sW, "setUpTestCase", fSetUpVelocityScript);
  }
  return ctx;
}
net.bpelunit.framework.model.testTestSuitecreateVelocityContext

Javadoc

Creates a new VelocityContext with information about this test suite. If necessary, it will initialize Velocity. NOTE: to keep test cases and activities isolated, this context should not be wrapped, but rather be cloned and then extended.

Popular methods of TestSuite

  • addResultListener
  • removeResultListener
  • run
  • setFilter
    Filters this test suite to only run the test cases with the names specified in the list (in that ord
  • setUp
  • shutDown
  • <init>
  • addTestCase
  • addTestCaseToFilter
  • endTestCase
  • getBaseURL
  • getChildren
  • getBaseURL,
  • getChildren,
  • getLocalServer,
  • getName,
  • getProcessUnderTest,
  • getRawName,
  • getTestCaseCount,
  • hasTestCase,
  • isRunning

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JLabel (javax.swing)
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now