org.arquillian.cube.kubernetes.impl.annotation.DefaultAnnotationProvider Maven / Gradle / Ivy
The newest version!
package org.arquillian.cube.kubernetes.impl.annotation;
import java.util.HashMap;
import java.util.Map;
import org.arquillian.cube.kubernetes.api.AnnotationProvider;
public class DefaultAnnotationProvider implements AnnotationProvider {
public static final String SESSION_ID = "arquillian.org/test-session-id";
public static final String TEST_SESSION_STATUS = "arquillian.org/test-session-status";
@Override
public Map create(String sessionId, String status) {
Map annotations = new HashMap<>();
annotations.put(SESSION_ID, sessionId);
annotations.put(TEST_SESSION_STATUS, status);
return annotations;
}
@Override
public AnnotationProvider toImmutable() {
return this;
}
}