package com.friday.tooldriver.service;

import com.friday.tooldriver.ServiceUTBase;
import com.friday.base.common.response.DubboResult;
import com.friday.operation.api.tooldriver.dto.common.DriverBase;
import com.friday.operation.api.tooldriver.dto.rpa.GroupDto;
import com.friday.tooldriver.service.strategy.CapabilityDriverImpl;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@FixMethodOrder(MethodSorters.JVM)
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class ICapabilityDriverImplTest extends ServiceUTBase {
    @Autowired
    private CapabilityDriverImpl rpaDriver;

    @Test
    public void testCreateGroup() {
        DubboResult<GroupDto> group = rpaDriver.createGroup(new DriverBase(), new GroupDto());
        Assert.assertTrue(group.success());
    }
}
