Examples of HgVersion


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

Examples of com.aragost.javahg.HgVersion

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

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
TOP
Copyright © 2018 www.massapi.com. 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.