package com.izouma.uwip.service;

import com.izouma.uwip.ApplicationTests;
import com.izouma.uwip.domain.LogoPatent;
import com.izouma.uwip.enums.CaseStage;
import com.izouma.uwip.enums.CaseType;
import com.izouma.uwip.exception.BusinessException;
import com.izouma.uwip.repo.LogoPatentRepo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;


public class LogoPatentServiceTest extends ApplicationTests {

    @Autowired
    private LogoPatentRepo    logoPatentRepo;
    @Autowired
    private LogoPatentService logoPatentService;
    @Autowired
    private PartnerService    partnerService;

    @Test
    public void getUwNo() {
        LogoPatent patent = logoPatentRepo.findById(44L).orElseThrow(new BusinessException("wu"));
        System.out.println(partnerService.getUwNo(patent.getClientPartnerId(), CaseType.LOGO, CaseStage.DOMESTIC, patent
                .getSort()));
    }
}