@Test public void testDoServiceNoMatch() throws Exception { SyntaxBranchingService sbs = new SyntaxBranchingService(); sbs.setSyntaxIdentifiers(createStandardIdentifiers()); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("The quick brown fox"); try { execute(sbs, msg); fail(); } catch (ServiceException e) { assertEquals("Unable to identify the message syntax to branch on", e.getMessage()); } }
public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); }
SyntaxBranchingService extends BranchingServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); } }
SyntaxBranchingService extends BranchingServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); }  }
SyntaxBranchingService extends BranchingServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); }  void doService(AdaptrisMessage msg); void addSyntaxIdentifier(SyntaxIdentifier ident); List<SyntaxIdentifier> getSyntaxIdentifiers(); void setSyntaxIdentifiers(List<SyntaxIdentifier> l); @Override void prepare(); }
SyntaxBranchingService extends BranchingServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); }  void doService(AdaptrisMessage msg); void addSyntaxIdentifier(SyntaxIdentifier ident); List<SyntaxIdentifier> getSyntaxIdentifiers(); void setSyntaxIdentifiers(List<SyntaxIdentifier> l); @Override void prepare();  }