@Test public void testCreate() { VcsRevisionNumber revisionNumber = subversionRevisionFactory.create("1234"); Assert.assertTrue(revisionNumber instanceof SvnRevisionNumber); Assert.assertEquals(1234, ((SvnRevisionNumber) revisionNumber).getLongRevisionNumber()); }
@Override public VcsRevisionNumber create(String revision) { try { return new SvnRevisionNumber(SVNRevision.create(Long.valueOf(revision))); } catch (NumberFormatException e) { return null; } }
SubversionRevisionFactory implements RevisionFactory { @Override public VcsRevisionNumber create(String revision) { try { return new SvnRevisionNumber(SVNRevision.create(Long.valueOf(revision))); } catch (NumberFormatException e) { return null; } } }
SubversionRevisionFactory implements RevisionFactory { @Override public VcsRevisionNumber create(String revision) { try { return new SvnRevisionNumber(SVNRevision.create(Long.valueOf(revision))); } catch (NumberFormatException e) { return null; } }  }
SubversionRevisionFactory implements RevisionFactory { @Override public VcsRevisionNumber create(String revision) { try { return new SvnRevisionNumber(SVNRevision.create(Long.valueOf(revision))); } catch (NumberFormatException e) { return null; } }  @Override VcsRevisionNumber create(String revision); @Override boolean matches(VcsRoot vcsRoot, String location, String alias); @Override String getType(); }
SubversionRevisionFactory implements RevisionFactory { @Override public VcsRevisionNumber create(String revision) { try { return new SvnRevisionNumber(SVNRevision.create(Long.valueOf(revision))); } catch (NumberFormatException e) { return null; } }  @Override VcsRevisionNumber create(String revision); @Override boolean matches(VcsRoot vcsRoot, String location, String alias); @Override String getType();  }