Package com.aragost.javahg

Examples of com.aragost.javahg.HgVersion


    }

    @Test
    public void testUnknownCommand() {
        Repository repo = getTestRepository();
        HgVersion hgVersion = repo.getHgVersion();
        DummyTestCommand cmd = new DummyTestCommand(repo);

        try {
            cmd.execute();
            assertFailedExecution(cmd);
        } catch (UnknownCommandException e) {
            Assert.assertSame(cmd, e.getCommand());
            Assert.assertTrue(e.getMessage().indexOf(hgVersion.getVersionString()) >= 0);
        }

    }
View Full Code Here


public class VersionCommandTest extends AbstractTestCase {

    @Test
    public void test() throws IOException {
        Repository repository = getTestRepository();
        HgVersion v = VersionCommand.on(repository).execute();
        Assert.assertFalse(v.isUnknown());
    }
View Full Code Here

    }

    @Test
    public void testUnknownCommand() {
        Repository repo = getTestRepository();
        HgVersion hgVersion = repo.getHgVersion();
        DummyTestCommand cmd = new DummyTestCommand(repo);

        try {
            cmd.execute();
            assertFailedExecution(cmd);
        } catch (UnknownCommandException e) {
            Assert.assertSame(cmd, e.getCommand());
            Assert.assertTrue(e.getMessage().indexOf(hgVersion.getVersionString()) >= 0);
        }

    }
View Full Code Here

TOP

Related Classes of com.aragost.javahg.HgVersion

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.