@Test public void orderedByVersion() throws IOException { final ArrayList<MigrationFileAsset> ordered = Lists.newArrayList( new OrderedByVersionFiles(RuntimeEnvironment.application.getAssets(), "ordered") .iterator() ); MatcherAssert.assertThat(ordered.get(0).version(), Matchers.equalTo(1)); MatcherAssert.assertThat(ordered.get(1).version(), Matchers.equalTo(8)); MatcherAssert.assertThat(ordered.get(2).version(), Matchers.equalTo(11)); }
@Override public Iterator<MigrationFileAsset> iterator() { return files.iterator(); }
OrderedByVersionFiles implements Iterable<MigrationFileAsset> { @Override public Iterator<MigrationFileAsset> iterator() { return files.iterator(); } }
OrderedByVersionFiles implements Iterable<MigrationFileAsset> { @Override public Iterator<MigrationFileAsset> iterator() { return files.iterator(); } OrderedByVersionFiles(
        @NonNull final AssetManager assets,
        @NonNull final String folder
    ); }
OrderedByVersionFiles implements Iterable<MigrationFileAsset> { @Override public Iterator<MigrationFileAsset> iterator() { return files.iterator(); } OrderedByVersionFiles(
        @NonNull final AssetManager assets,
        @NonNull final String folder
    ); @Override Iterator<MigrationFileAsset> iterator(); }
OrderedByVersionFiles implements Iterable<MigrationFileAsset> { @Override public Iterator<MigrationFileAsset> iterator() { return files.iterator(); } OrderedByVersionFiles(
        @NonNull final AssetManager assets,
        @NonNull final String folder
    ); @Override Iterator<MigrationFileAsset> iterator();  }