de.retest.recheck.meta.GlobalMetadataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of recheck Show documentation
Show all versions of recheck Show documentation
Replace traditional assertions with a single check.
package de.retest.recheck.meta;
import java.util.Map;
import de.retest.recheck.meta.global.GitMetadataProvider;
import de.retest.recheck.meta.global.MachineMetadataProvider;
import de.retest.recheck.meta.global.OSMetadataProvider;
import de.retest.recheck.meta.global.TimeMetadataProvider;
/**
* Provides generic metadata that apply in particular to the current context in which a program is executed. This
* includes for example:
*
* - The operating systems name and version.
* - The date and time executed.
* - ...
*
*/
final class GlobalMetadataProvider implements MetadataProvider {
private final MetadataProvider globalProvider = MultiMetadataProvider.of( //
new GitMetadataProvider(), //
new MachineMetadataProvider(), //
new OSMetadataProvider(), //
new TimeMetadataProvider() //
);
@Override
public Map retrieve() {
return globalProvider.retrieve();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy