Class TestUtils

java.lang.Object
org.apache.maven.index.reader.TestUtils

public final class TestUtils extends Object
Helpers to transform records from one to another representation, and, some helpers for publishing using Guava.
  • Field Details

  • Method Details

    • decorate

      public static Iterable<org.apache.maven.index.reader.Record> decorate(Iterable<org.apache.maven.index.reader.Record> iterable, String repoId)
      Helper method, that "decorates" the stream of records to be written out with "special" Maven Indexer records, so all the caller is needed to provide Iterable or Records to be on the index, with record type Record.Type.ARTIFACT_ADD. This method will create the output as "proper" Maven Indexer record stream, by adding the Record.Type.DESCRIPTOR, Record.Type.ROOT_GROUPS and Record.Type.ALL_GROUPS special records.