001/** 002 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package io.jboot.test; 017 018import java.lang.annotation.*; 019 020@Inherited 021@Retention(RetentionPolicy.RUNTIME) 022@Target({ElementType.TYPE}) 023public @interface TestConfig { 024 025 //webRootPath 配置 026 String webRootPath() default MockApp.DEFAULT_WEB_ROOT_PATH; 027 028 //class path 配置 029 String classPath() default MockApp.DEFAULT_CLASS_PATH; 030 031 //自动 Mock Interface 接口,有些接口没有实现类的,当执行其方法时,啥都不操作,若有返回值则返回 null 032 boolean autoMockInterface() default false; 033 034 //配置 appMode 035 boolean devMode() default true; 036 037 //配置启动是否打印 class 扫描信息 038 boolean printScannerInfo() default false; 039 040 //配置启动参数 041 String[] launchArgs() default ""; 042 043}