@@ -0,0 +1,2590 @@
+/**%0A *         PlasmaSDO%E2%84%A2 License%0A * %0A * This is a community release of PlasmaSDO%E2%84%A2, a dual-license %0A * Service Data Object (SDO) 2.1 implementation. %0A * This particular copy of the software is released under the %0A * version 2 of the GNU General Public License. PlasmaSDO%E2%84%A2 was developed by %0A * TerraMeta Software, Inc.%0A * %0A * Copyright (c) 2013, TerraMeta Software, Inc. All rights reserved.%0A * %0A * General License information can be found below.%0A * %0A * This distribution may include materials developed by third%0A * parties. For license and attribution notices for these%0A * materials, please refer to the documentation that accompanies%0A * this distribution (see the %22Licenses for Third-Party Components%22%0A * appendix) or view the online documentation at %0A * %3Chttp://plasma-sdo.org/licenses/%3E.%0A *  %0A */%0Apackage org.plasma.sdo.provisioning.cli;%0A%0A%0A%0A%0Aimport java.io.IOException;%0A%0Aimport javax.xml.bind.JAXBException;%0A%0Aimport joptsimple.OptionException;%0Aimport junit.framework.Test;%0A%0Aimport org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0Aimport org.plasma.common.test.PlasmaTest;%0Aimport org.plasma.common.test.PlasmaTestSetup;%0Aimport org.plasma.provisioning.cli.CassandraTool;%0Aimport org.plasma.provisioning.cli.RDBDialect;%0Aimport org.plasma.provisioning.cli.RDBTool;%0Aimport org.plasma.provisioning.cli.ProvisioningToolOption;%0Aimport org.plasma.provisioning.cli.RDBToolAction;%0Aimport org.xml.sax.SAXException;%0A%0A/**%0A * Tests for Cassandra tool%0A */%0Apublic class CassandraToolTest extends PlasmaTest %7B%0A    private static Log log = LogFactory.getLog(CassandraToolTest.class);%0A        %0A    public static Test suite() %7B%0A        return PlasmaTestSetup.newTestSetup(CassandraToolTest.class);%0A    %7D%0A    %0A    public void setUp() throws Exception %7B        %0A        super.setUp();%0A    %7D%0A    %0A    public void testNoOptions() throws Exception %7B%0A    %09String%5B%5D args = %7B%0A%09    %09%09%22-%22 + ProvisioningToolOption.silent.name(),%0A    %09%7D;%0A    %09try %7B %0A    %09%09CassandraTool.main(args);%0A    %09    assertFalse(true);%0A    %09%7D%0A    %09catch (IllegalArgumentException e) %7B%0A    %09%7D%0A    %7D%0A    %0A    public void testHelpOption() throws Exception %7B%0A    %09String%5B%5D args = %7B%0A%09    %09%22-%22 + ProvisioningToolOption.silent.name(),%0A    %09%09%22-%22 + ProvisioningToolOption.help.name()%0A    %09%7D;%0A %09%0A    %09CassandraTool.main(args);%0A    %7D%0A    %0A    public void testUnknownOption() throws Exception %7B%0A    %09try %7B%0A%09    %09String%5B%5D args = %7B%0A%09    %09%09%22-%22 + ProvisioningToolOption.silent.name(),%0A%09    %09%09%22-FOO%22 %0A%09    %09%7D;%0A%09 %09%0A%09    %09CassandraTool.main(args);%0A%09%09    assertFalse(true);%0A    %09%7D%0A    %09catch (OptionException e) %7B%0A    %09%7D%0A    %7D%0A     %0A  %7D%0A

Create CassandraToolTest.java