Package org.apache.geronimo.corba.deployment.security.config.tss

Examples of org.apache.geronimo.corba.deployment.security.config.tss.TSSConfigEditor


        }
    }

    public void testSimple1() throws Exception {
        XmlObject xmlObject = getXmlObject(TEST_XML1);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, null, null);
        TSSConfig tss = (TSSConfig) o;
        assertFalse(tss.isInherit());
        assertNotNull(tss.getTransport_mech());
    }
View Full Code Here


        assertNotNull(tss.getTransport_mech());
    }

    public void testSimple2() throws Exception {
        XmlObject xmlObject = getXmlObject(TEST_XML2);
        TSSConfigEditor editor = new TSSConfigEditor();
        TSSConfig tss = (TSSConfig) editor.getValue(xmlObject, null, null, null);
        assertTrue(tss.isInherit());
        assertNotNull(tss.getTransport_mech());
        assertTrue(tss.getTransport_mech() instanceof TSSNULLTransportConfig);
    }
View Full Code Here

    }

    public void testSimple3() throws Exception {
        try {
            XmlObject xmlObject = getXmlObject(TEST_XML3);
            TSSConfigEditor editor = new TSSConfigEditor();
            TSSConfig tss = (TSSConfig) editor.getValue(xmlObject, null, null, null);
            fail("Should fail");
        } catch (DeploymentException e) {
        }

    }
View Full Code Here

        Naming naming = new Jsr77Naming();
        AbstractName testName = naming.createRootName(new Artifact("test", "stuff", "", "ear"), "gbean", NameFactory.CORBA_SERVICE);
        ConfigAdapter configAdapter = new org.apache.geronimo.yoko.ORBConfigAdapter(bundle);
        CORBABean corbaBean = new CORBABean(testName, configAdapter, "localhost", 8050, getClass().getClassLoader(), null, null);
        XmlObject xmlObject = getXmlObject(TEST_XML4);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, null, bundle);
        TSSConfig tss = (TSSConfig) o;

        corbaBean.setTssConfig(tss);

        try {
View Full Code Here

        Naming naming = new Jsr77Naming();
        AbstractName testName = naming.createRootName(new Artifact("test", "stuff", "", "ear"), "gbean", NameFactory.CORBA_SERVICE);
        ConfigAdapter configAdapter = new org.apache.geronimo.yoko.ORBConfigAdapter(bundle);
        CORBABean corbaBean = new CORBABean(testName, configAdapter, "localhost", 8050, getClass().getClassLoader(), null, null);
        XmlObject xmlObject = getXmlObject(TEST_XML4);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, bundle);
        TSSConfig tss = (TSSConfig) o;

        corbaBean.setTssConfig(tss);

        try {
View Full Code Here

        }
    }

    public void testSimple1() throws Exception {
        XmlObject xmlObject = getXmlObject(TEST_XML1);
        TSSConfigEditor editor = new TSSConfigEditor();
        Object o = editor.getValue(xmlObject, null, null);
        TSSConfig tss = (TSSConfig) o;
        assertFalse(tss.isInherit());
        assertNotNull(tss.getTransport_mech());
    }
View Full Code Here

        assertNotNull(tss.getTransport_mech());
    }

    public void testSimple2() throws Exception {
        XmlObject xmlObject = getXmlObject(TEST_XML2);
        TSSConfigEditor editor = new TSSConfigEditor();
        TSSConfig tss = (TSSConfig) editor.getValue(xmlObject, null, null);
        assertTrue(tss.isInherit());
        assertNotNull(tss.getTransport_mech());
        assertTrue(tss.getTransport_mech() instanceof TSSNULLTransportConfig);
    }
View Full Code Here

    }

    public void testSimple3() throws Exception {
        try {
            XmlObject xmlObject = getXmlObject(TEST_XML3);
            TSSConfigEditor editor = new TSSConfigEditor();
            TSSConfig tss = (TSSConfig) editor.getValue(xmlObject, null, null);
            fail("Should fail");
        } catch (DeploymentException e) {
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.corba.deployment.security.config.tss.TSSConfigEditor

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.