Package org.ops4j.pax.exam

Examples of org.ops4j.pax.exam.TestContainerException


    @Override
    public ProbeInvoker createProbeInvoker(Object context, String expr) {
        URI uri = TestDirectory.getInstance().getAccessPoint();
        if (uri == null) {
            throw new TestContainerException("servlet container context root is undefined");
        }
        String accessPoint = uri.toString();
        String encodedInstruction = expr + ";" + accessPoint;
        return new JaxRs2ProbeInvoker(encodedInstruction);
    }
View Full Code Here


        return this;
    }

    public TestProbeProvider build() {
        if (anchors.size() == 0) {
            throw new TestContainerException("No tests added to setup!");
        }

        constructProbeTag(extraProperties);
        try {
            TinyBundle bundle = prepareProbeBundle(createExtraIgnores());
            return new DefaultTestProbeProvider(getTests(), store, store.store(bundle
                .build(withClassicBuilder())));

        }
        catch (IOException e) {
            throw new TestContainerException(e);
        }
    }
View Full Code Here

                    .substring(0, fullPath.length() - clazzPath.length());
                return new File(parentDirPath);
            }
            catch (URISyntaxException e) {
                // this should not happen as the uri was obtained from getResource
                throw new TestContainerException(e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.TestContainerException

Copyright © 2018 www.massapicom. 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.