All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.web.WebDomainArbitraryProvider Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.web;

import java.util.*;

import net.jqwik.api.*;
import net.jqwik.api.providers.*;
import net.jqwik.web.api.*;

public class WebDomainArbitraryProvider implements ArbitraryProvider {

	@Override
	public boolean canProvideFor(TypeUsage targetType) {
		return targetType.isAssignableFrom(String.class) && targetType.findAnnotation(WebDomain.class).isPresent();
	}

	@Override
	public Set> provideFor(TypeUsage targetType, SubtypeProvider subtypeProvider) {
		return Collections.>singleton(Web.webDomains());
	}

	@Override
	public int priority() {
		return 5;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy