@Test public void testInclude() throws Exception { final PackageList parsed = new PackageList(FAKE_FILE, "#include \"./another\" @Override @Nonnull public String readContent(@Nonnull final File pathElements) throws IOException { assertEquals("another", FilenameUtils.normalize(pathElements.getPath())); return "package: external"; } }); assertEquals(3,parsed.getPackages().size()); assertEquals("external", parsed.getPackages().get(0).getPackage()); assertEquals("one", parsed.getPackages().get(1).getPackage()); assertEquals("two", parsed.getPackages().get(2).getPackage()); }
@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();  }