Untitled
unknown
plain_text
2 years ago
1.4 kB
3
Indexable
import static org.junit.Assert.assertNotNull; import org.junit.Before; import org.junit.Test; import br.com.senior.erpxfnd.produto.factory.StubFactory; import br.com.senior.messaging.context.functional.MessageSupplier; import br.com.senior.messaging.context.functional.MessengerSupplier; import br.com.senior.messaging.context.functional.TenantSupplier; import br.com.senior.messaging.context.functional.UserSupplier; import br.com.senior.platform.blobservice.BlobServiceStub; public class StubFactoryTest { private StubFactory stubFactory; @Before public void setup() { // Configura o StubFactory com as dependências necessárias stubFactory = new StubFactory(); stubFactory.setMessageSupplier(() -> "testMessage"); stubFactory.setMessengerSupplier(() -> null); stubFactory.setTenantSupplier(() -> "testTenant"); stubFactory.setUserSupplier(() -> "testUser"); } @Test public void testGetBlobServiceStub() { BlobServiceStub blobServiceStub = stubFactory.getBlobServiceStub(); assertNotNull(blobServiceStub); } @Test public void testGetBlobServiceTrustedStub() { BlobServiceStub blobServiceTrustedStub = stubFactory.getBlobServiceTrustedStub(); assertNotNull(blobServiceTrustedStub); } }
Editor is loading...