@Test public void messageShouldBeBuildFailure() throws CruiseControlException { TestTwitterProxy proxy = new TestTwitterProxy(); TwitterPublisher twitter = new TwitterPublisher(proxy); Element failed = TestUtil.createFailedBuild(); twitter.publish(failed); assertEquals("someproject failed", proxy.status); }
public void publish(Element cruisecontrolLog) throws CruiseControlException { XMLLogHelper helper = new XMLLogHelper(cruisecontrolLog); proxy.twitter(helper.getProjectName() + " " + helper.getStatusMessage(), username, password); }
TwitterPublisher implements Publisher { public void publish(Element cruisecontrolLog) throws CruiseControlException { XMLLogHelper helper = new XMLLogHelper(cruisecontrolLog); proxy.twitter(helper.getProjectName() + " " + helper.getStatusMessage(), username, password); } }
TwitterPublisher implements Publisher { public void publish(Element cruisecontrolLog) throws CruiseControlException { XMLLogHelper helper = new XMLLogHelper(cruisecontrolLog); proxy.twitter(helper.getProjectName() + " " + helper.getStatusMessage(), username, password); } TwitterPublisher();   TwitterPublisher(TwitterProxy proxy); }
TwitterPublisher implements Publisher { public void publish(Element cruisecontrolLog) throws CruiseControlException { XMLLogHelper helper = new XMLLogHelper(cruisecontrolLog); proxy.twitter(helper.getProjectName() + " " + helper.getStatusMessage(), username, password); } TwitterPublisher();   TwitterPublisher(TwitterProxy proxy); void publish(Element cruisecontrolLog); void validate(); void setPassword(String s); void setUsername(String s); }
TwitterPublisher implements Publisher { public void publish(Element cruisecontrolLog) throws CruiseControlException { XMLLogHelper helper = new XMLLogHelper(cruisecontrolLog); proxy.twitter(helper.getProjectName() + " " + helper.getStatusMessage(), username, password); } TwitterPublisher();   TwitterPublisher(TwitterProxy proxy); void publish(Element cruisecontrolLog); void validate(); void setPassword(String s); void setUsername(String s);  }