public final class TestUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Function<org.apache.maven.index.reader.Record,Map<String,String>> |
compactFunction |
static Function<Map<String,String>,org.apache.maven.index.reader.Record> |
expandFunction |
Modifier and Type | Method and Description |
---|---|
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 Record s to be on the index, with
record type Record.Type.ARTIFACT_ADD . |
public static Function<org.apache.maven.index.reader.Record,Map<String,String>> compactFunction
public static Iterable<org.apache.maven.index.reader.Record> decorate(Iterable<org.apache.maven.index.reader.Record> iterable, String repoId)
Iterable
or Record
s 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.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.