@Test public void testAddJar() { jobRequest.addJar("A"); jobRequest.addJar("B"); jobRequest.addJar("A"); assertEquals(2, jobRequest.getJars().size()); assertTrue(jobRequest.getJars().contains("A")); assertTrue(jobRequest.getJars().contains("B")); }
public void addJar(String jar) { if (!jars.contains(jar)) { jars.add(jar); } }
JobRequest implements Serializable { public void addJar(String jar) { if (!jars.contains(jar)) { jars.add(jar); } } }
JobRequest implements Serializable { public void addJar(String jar) { if (!jars.contains(jar)) { jars.add(jar); } } JobRequest(); }
JobRequest implements Serializable { public void addJar(String jar) { if (!jars.contains(jar)) { jars.add(jar); } } JobRequest(); MSubmission getJobSubmission(); void setJobSubmission(MSubmission submission); String getJobName(); void setJobName(String jobName); long getJobId(); void setJobId(long jobId); SqoopConnector getConnector(Direction type); void setConnector(Direction type, SqoopConnector connector); Set<String> getJars(); void addJar(String jar); void addJarForClass(Class<?> klass); void addJars(Set<String> jars); Transferable getFrom(); void setFrom(Transferable from); Transferable getTo(); void setTo(Transferable to); Object getConnectorLinkConfig(Direction type); void setConnectorLinkConfig(Direction type, Object config); Object getJobConfig(Direction type); void setJobConfig(Direction type, Object config); Object getDriverConfig(); void setDriverConfig(Object config); MutableMapContext getConnectorContext(Direction type); MutableMapContext getDriverContext(); String getNotificationUrl(); void setNotificationUrl(String url); Integer getExtractors(); void setExtractors(Integer extractors); Integer getLoaders(); void setLoaders(Integer loaders); Class<? extends IntermediateDataFormat<?>> getIntermediateDataFormat(Direction direction); void setIntermediateDataFormat(
      Class<? extends IntermediateDataFormat<? extends Object>> intermediateDataFormat,
      Direction direction); void addData(IntermediateDataFormat<?> idf); List<IntermediateDataFormat<?>> getData(); Map<String, String> getConf(); }
JobRequest implements Serializable { public void addJar(String jar) { if (!jars.contains(jar)) { jars.add(jar); } } JobRequest(); MSubmission getJobSubmission(); void setJobSubmission(MSubmission submission); String getJobName(); void setJobName(String jobName); long getJobId(); void setJobId(long jobId); SqoopConnector getConnector(Direction type); void setConnector(Direction type, SqoopConnector connector); Set<String> getJars(); void addJar(String jar); void addJarForClass(Class<?> klass); void addJars(Set<String> jars); Transferable getFrom(); void setFrom(Transferable from); Transferable getTo(); void setTo(Transferable to); Object getConnectorLinkConfig(Direction type); void setConnectorLinkConfig(Direction type, Object config); Object getJobConfig(Direction type); void setJobConfig(Direction type, Object config); Object getDriverConfig(); void setDriverConfig(Object config); MutableMapContext getConnectorContext(Direction type); MutableMapContext getDriverContext(); String getNotificationUrl(); void setNotificationUrl(String url); Integer getExtractors(); void setExtractors(Integer extractors); Integer getLoaders(); void setLoaders(Integer loaders); Class<? extends IntermediateDataFormat<?>> getIntermediateDataFormat(Direction direction); void setIntermediateDataFormat(
      Class<? extends IntermediateDataFormat<? extends Object>> intermediateDataFormat,
      Direction direction); void addData(IntermediateDataFormat<?> idf); List<IntermediateDataFormat<?>> getData(); Map<String, String> getConf();  }