@Test public void testOnlyPackageName() throws Exception { final PackageList parsed = new PackageList(FAKE_FILE, " assertEquals(1, parsed.getPackages().size()); assertEquals("github.com/gizak/termui", parsed.getPackages().get(0).getPackage()); assertNull(parsed.getPackages().get(0).getBranch()); assertNull(parsed.getPackages().get(0).getRevision()); assertNull(parsed.getPackages().get(0).getTag()); }
@Nonnull @MustNotContainNull public List<Package> getPackages() { return this.packages; }
PackageList { @Nonnull @MustNotContainNull public List<Package> getPackages() { return this.packages; } }
PackageList { @Nonnull @MustNotContainNull public List<Package> getPackages() { return this.packages; } PackageList(@Nonnull @MustNotContainNull final File file, @Nonnull final String text, @Nonnull final ContentProvider contentProvider); }
PackageList { @Nonnull @MustNotContainNull public List<Package> getPackages() { return this.packages; } PackageList(@Nonnull @MustNotContainNull final File file, @Nonnull final String text, @Nonnull final ContentProvider contentProvider); @Nonnull @MustNotContainNull List<Package> getPackages(); }
PackageList { @Nonnull @MustNotContainNull public List<Package> getPackages() { return this.packages; } PackageList(@Nonnull @MustNotContainNull final File file, @Nonnull final String text, @Nonnull final ContentProvider contentProvider); @Nonnull @MustNotContainNull List<Package> getPackages();  }