@@ -0,0 +1,1472 @@
+package org.opensingular.form.type.core;%0A%0Aimport java.io.Serializable;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.opensingular.form.RefService;%0Aimport org.opensingular.form.SIComposite;%0Aimport org.opensingular.form.SInstance;%0Aimport org.opensingular.form.SType;%0Aimport org.opensingular.form.STypeComposite;%0Aimport org.opensingular.form.TestCaseForm;%0Aimport org.opensingular.form.document.RefType;%0Aimport org.opensingular.form.document.SDocumentFactory;%0A%0A@RunWith(Parameterized.class)%0Apublic class STypeIntegerTest extends  TestCaseForm  %7B%0A%0A    public STypeIntegerTest(TestFormConfig testFormConfig) %7B%0A        super(testFormConfig);%0A    %7D%0A%0A    @Test(expected = RuntimeException.class)%0A    public void valorMuitoGrande() %7B%0A        STypeComposite%3CSIComposite%3E base = createTestPackage().createCompositeType(%22base%22);%0A        STypeInteger field1 = base.addFieldInteger(%22numero%22);%0A%0A        field1.withInitListener(x -%3E x.setValue(Long.MAX_VALUE));%0A        %0A        field1.asAtr().maxLength(20);%0A        assertInstance(newInstance(field1)).isValueEquals(Long.MAX_VALUE);%0A    %7D%0A    %0A    private SInstance newInstance(SType t) %7B%0A        return SDocumentFactory.empty()%0A                .extendAddingSetupStep(document -%3E document.bindLocalService(%22test%22, P.class, RefService.of(new P())))%0A                .createInstance(RefType.of(() -%3E t));%0A    %7D%0A%0A    private static class P implements Serializable %7B%0A%0A    %7D%0A%0A   %0A%7D%0A

Teste para STypeInteger com valor mior que limite do integer.