package com.cf.imes.framework.test.core.podam.strategy;

import cn.hutool.core.util.RandomUtil;
import uk.co.jemos.podam.common.AttributeStrategy;

import java.lang.annotation.Annotation;
import java.util.List;

/**
 * random mock对象 @NumberValid策略
 *
 * @author Gqr
 * @since 2025/9/9 14:17
 */
public class NumberValidStrategy implements AttributeStrategy<Integer> {

    @Override
    public Integer getValue(Class<?> aClass, List<Annotation> list) {
        return RandomUtil.randomInt(0, Integer.MAX_VALUE);
    }
}
