Package org.auraframework.def

Examples of org.auraframework.def.TestCaseDef


    public JSTestCaseModel() throws QuickFixException {
        AuraContext context = Aura.getContextService().getCurrentContext();
        BaseComponent<?, ?> component = context.getCurrentComponent();

        TestCaseDef caseDef = (TestCaseDef) component.getAttributes().getValue("case");

        String baseUrl = component.getAttributes().getValue("url").toString();
        Set<Entry<String, Object>> attributes = caseDef.getAttributeValues().entrySet();
        List<NameValuePair> newParams = Lists.newArrayList();
        String hash = "";
        if (!attributes.isEmpty()) {
            for (Entry<String, Object> entry : attributes) {
                String key = entry.getKey();
                String value = entry.getValue().toString();
                if (key.equals("__layout")) {
                    hash = value;
                } else {
                    newParams.add(new BasicNameValuePair(key, value));
                }
            }
        }
        newParams.add(new BasicNameValuePair("aura.test", caseDef.getDescriptor().getQualifiedName()));
        url = baseUrl + "&" + URLEncodedUtils.format(newParams, "UTF-8") + hash;
        count = ((TestSuiteDef) component.getAttributes().getValue("suite")).getTestCaseDefs().size();
    }
View Full Code Here

TOP

Related Classes of org.auraframework.def.TestCaseDef

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.