Examples of TestContext


Examples of ar.com.dgarcia.javaspec.api.TestContext

     */
    private void runWithOwnSubContext(Runnable codeToRun) {
        MappedContext testRunContext = MappedContext.create();
        testRunContext.setParentDefinition(parentContext);

        TestContext previousContext = sharedContext.get();
        sharedContext.set(testRunContext);
        try{
            codeToRun.run();
        }finally{
            sharedContext.set(previousContext);
View Full Code Here

Examples of ariba.ui.aribaweb.test.TestContext

public class TestComponentPage extends AWComponent
{
    void createBusinessObject ()
    {
        TestContext tc = TestContext.getTestContext(requestContext());
        tc.put(new String("MyBusinessObject"));
        tc.put(new Integer(20));
        tc.put(this);

        Set keys = tc.keys();
        for (Object key : keys) {
            boolean has = TestLinkManager.instance().hasObjectInspectors(key);
            if (has) {
                List<TestInspectorLink> inspectors =
                        TestLinkManager.instance().getObjectInspectors(key);
View Full Code Here

Examples of ariba.ui.aribaweb.test.TestContext

        return null;
    }

    AWComponent showNewBusinessObjectWindow ()
    {
        TestContext tc = TestContext.getTestContext(requestContext());
        tc.put(new String("MyBusinessObject"));
        return null;
    }
View Full Code Here

Examples of com.alexecollins.vbox.core.TestContext

public class DeleteDefinitionIT {
  @Test
  public void testCall() throws Exception {
    final File tmp = Files.createTempDir();
    final File target = new File(tmp, "test");
    final VBox box = new CreateDefinition(new TestContext(), "CentOS_6_5", target).call();

    System.out.println("src="+box.getSrc());

    assertTrue(target.exists());
    new DeleteDefinition(new Work(new TestContext()), box).call();
    assertFalse(target.exists());
  }
View Full Code Here

Examples of com.asakusafw.testdriver.core.TestContext

        env.put("ASAKUSA_HOME", folder.getRoot().getAbsolutePath());
        final Map<String, String> args = new HashMap<String, String>();
        for (int i = 0; i < kvs.length; i += 2) {
            args.put(kvs[i], kvs[i + 1]);
        }
        return new TestContext() {

            @Override
            public Map<String, String> getEnvironmentVariables() {
                return env;
            }
View Full Code Here

Examples of com.consol.citrus.context.TestContext

    private String packageName = "com.consol.citrus.tests";

    @Override
    public Message dispatchMessage(final Message request, String mappingName) {
        final TestCase test;
        final TestContext testContext;

        try {
            testContext = testContextFactory.getObject();
            test = getTestCase(testContext, mappingName);
        } catch (NoSuchBeanDefinitionException e) {
View Full Code Here

Examples of com.dubture.twig.core.codeassist.context.TestContext

    @Override
    public void apply(ICompletionReporter reporter) throws Exception
    {

        TestContext ctx = (TestContext) getContext();

        IScriptProject project = ctx.getSourceModule().getScriptProject();
        Test[] tests = TwigModelAccess.getDefault().getTests(project);
        SourceRange range = getReplacementRange(ctx);
        String prefix = ctx.getPrefix();

        for (Test test : tests) {
            if (CodeAssistUtils.startsWithIgnoreCase(test.getElementName(),
                    prefix)) {
                test.setScriptProject(project);
View Full Code Here

Examples of com.force.sdk.qa.util.TestContext

        BlockingQueue<Long> semaphor = new ArrayBlockingQueue<Long>(3) {  };
        LinkedList<Throwable> excQ = new LinkedList<Throwable>();
        StringBuffer errLog = new StringBuffer("-----------------------------\nSCENARIO " + scenarioName + " START\n");

        for (int i = 0; i < prot.length; i++) {
            TestContext t = TestContext.get();
            new Thread(new ScriptRunner<E>(semaphor, excQ, errLog, t.getUserInfo(),
                    emf, ex, ane.getId(), ane.getClass(), pane.getId(), Arrays.asList(prot[i]))).start();
        }
        synchronized (excQ) {
            try {
                while (threadcount > 0) {
View Full Code Here

Examples of com.google.appengine.tck.base.TestContext

     * the test classes themselves. <p/> Note that tools may indicate that getDeployment() is not
     * used since it is called dynamically.
     */
    @Deployment
    public static WebArchive getDeployment() {
        TestContext context = new TestContext().setUseSystemProperties(true).setCompatibilityProperties(TCK_PROPERTIES);
        context.setAppEngineWebXmlFile("mail-appengine-web.xml");
        context.setWebXmlFile("mail-web.xml");

        WebArchive war = getTckDeployment(context);
        war.addClasses(MailTestBase.class, MailHandlerServlet.class, BounceHandlerServlet.class, MimeProperties.class, EmailMessageField.class, EmailAddressFormatter.class);

        return war;
View Full Code Here

Examples of com.mycila.testing.core.api.TestContext

        }
    }

    public static TestContext context(Object testInstance) {
        notNull("Test instance", testInstance);
        TestContext context = CONTEXTS.get(testInstance);
        if (context == null) {
            throw new MycilaTestingException("No Global Test Context available for test %s#%s", testInstance.getClass().getName(), testInstance.hashCode());
        }
        return context;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.