package io.delphiplatform.api.v3.model.gras;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import io.delphiplatform.api.v3.rdb.entity.ProductVersionEntity;

class ProductVersionTest {

    @Test
    void from_nullArtist() {
        ProductVersionEntity entity = new ProductVersionEntity();
        entity.setProdVersNo(10);
        entity.setMainArtist(null);
        ProductVersion from = ProductVersion.from(entity);

        Assertions.assertEquals(10, from.getProductVersionNo());
        Assertions.assertNull(from.getMainArtistId());
    }
}