wtf.metio.yosql.internals.testing.configs.AnnotationsConfigurations Maven / Gradle / Ivy
/*
* This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
* including this file, may be copied, modified, propagated, or distributed except according to the terms contained
* in the LICENSE file.
*/
package wtf.metio.yosql.internals.testing.configs;
import wtf.metio.yosql.models.configuration.GeneratedAnnotationApis;
import wtf.metio.yosql.models.immutables.AnnotationsConfiguration;
/**
* Object mother for {@link AnnotationsConfiguration}s.
*/
public final class AnnotationsConfigurations {
public static AnnotationsConfiguration defaults() {
return AnnotationsConfiguration.builder()
.setAnnotateClasses(true)
.setAnnotateFields(true)
.setAnnotateMethods(true)
.build();
}
public static AnnotationsConfiguration generated() {
return AnnotationsConfiguration.copyOf(defaults())
.withAnnotationApi(GeneratedAnnotationApis.ANNOTATION_API);
}
private AnnotationsConfigurations() {
// factory class
}
}