@Test public void testClusterSubmitter() throws Exception { TonyClient client = spy(new TonyClient()); doReturn(0).when(client).start(); ClusterSubmitter submitter = new ClusterSubmitter(client); int exitCode = submitter.submit(new String[] {"--src_dir", "src"}); assertEquals(exitCode, 0); assertTrue( client.getTonyConf().get(TonyConfigurationKeys.getContainerResourcesKey()).contains(Constants.TONY_JAR_NAME)); }
public ClusterSubmitter(TonyClient client) { this.client = client; }
ClusterSubmitter extends TonySubmitter { public ClusterSubmitter(TonyClient client) { this.client = client; } }
ClusterSubmitter extends TonySubmitter { public ClusterSubmitter(TonyClient client) { this.client = client; } ClusterSubmitter(TonyClient client); }
ClusterSubmitter extends TonySubmitter { public ClusterSubmitter(TonyClient client) { this.client = client; } ClusterSubmitter(TonyClient client); int submit(String[] args); static void main(String[] args); }
ClusterSubmitter extends TonySubmitter { public ClusterSubmitter(TonyClient client) { this.client = client; } ClusterSubmitter(TonyClient client); int submit(String[] args); static void main(String[] args);  }