Package test.sample.valid

Examples of test.sample.valid.ServerConfig$PackageRepositoryConfig4


    }

    public void testServerConfig() throws Exception
    {
        final Element element = this.getRootElement( "/correct/server.xml" );
        final ServerConfig cfg = XML2Java.bind( element, ServerConfig.class );

        final ServerConfig.Module[] modules = cfg.getModules();
        Assert.assertTrue( modules.length == 3 );
        Assert.assertEquals( modules[ 0 ].getInstanceName(), "TransportRepository" );
        Assert.assertEquals( modules[ 0 ].getImplementationClass(), "com.test.module.TransportRepositoryImpl" );

        Assert.assertEquals( modules[ 1 ].getInstanceName(), "InterceptorRepository" );
View Full Code Here

TOP

Related Classes of test.sample.valid.ServerConfig$PackageRepositoryConfig4

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.