@Test public void testListHelp() throws Exception { PGList listCommand = new PGList(); listCommand.help = true; listCommand.run(cli); }
@Test public void testListHelp() throws Exception { PGList listCommand = new PGList(); listCommand.help = true; listCommand.run(cli); }
@Test public void testList() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createTestFactory(); listCommand.run(cli); }
@Test public void testInvalidDatabaseParams() throws Exception { PGList listCommand = new PGList(); listCommand.commonArgs.host = "nonexistent"; exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testInvalidDatabaseParams() throws Exception { PGList listCommand = new PGList(); listCommand.commonArgs.host = "nonexistent"; exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testList() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createTestFactory(); listCommand.run(cli); }
@Test public void testListException() throws Exception { when(cli.getConsole()).thenThrow(new MockitoException("Exception")); PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createTestFactory(); exception.expect(MockitoException.class); listCommand.run(cli); } }
@Test public void testListException() throws Exception { when(cli.getConsole()).thenThrow(new MockitoException("Exception")); PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createTestFactory(); exception.expect(MockitoException.class); listCommand.run(cli); } }
@Test public void testNullDataStore() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createNullTestFactory(); exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testGetNamesException() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createFactoryWithGetNamesException(); exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testNullDataStore() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createNullTestFactory(); exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testGetNamesException() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createFactoryWithGetNamesException(); exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testEmptyDataStore() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createEmptyTestFactory(); exception.expect(CommandFailedException.class); listCommand.run(cli); }
@Test public void testEmptyDataStore() throws Exception { PGList listCommand = new PGList(); listCommand.support.dataStoreFactory = TestHelper.createEmptyTestFactory(); exception.expect(CommandFailedException.class); listCommand.run(cli); }