
artoria.mock.JMockDataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
The newest version!
package artoria.mock;
import com.github.jsonzou.jmockdata.DataConfig;
import com.github.jsonzou.jmockdata.MockConfig;
import com.github.jsonzou.jmockdata.mocker.BaseMocker;
import java.lang.reflect.Type;
public class JMockDataProvider implements MockProvider {
@Override
public Object mock(Type type, Object... arguments) {
MockConfig mockConfig = new MockConfig();
mockConfig.init(type);
DataConfig config = mockConfig.globalDataConfig();
//noinspection rawtypes
return new BaseMocker(type).mock(config);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy