package com.izouma.nineth.service;

import com.izouma.nineth.ApplicationTests;
import com.izouma.nineth.domain.Collection;
import com.izouma.nineth.repo.CollectionRepo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

class CollectionServiceTest extends ApplicationTests {

    @Autowired
    private CollectionService collectionService;
    @Autowired
    private CollectionRepo    collectionRepo;

    @Test
    void toDTO() {
        Collection collection = collectionRepo.findById(951L).get();
        assert collection.getPic() != null;
    }


}