<commit_before><commit_msg>KULRICE-5404: a few tests<commit_after>package org.kuali.rice.core.api.uif

import org.junit.Test
import static org.junit.Assert.*
import org.kuali.rice.core.test.JAXBAssert

class RemotableTextInputTest {
           	private static final String XML =
        """<textInput xmlns="http://rice.kuali.org/core/v2_0">
            <size>2</size>
            <watermark>foo</watermark>
          </textInput>""";

    @Test
    void testHappyPath() {
        RemotableTextInput o = RemotableTextInput.Builder.create().build();
        assertNotNull(o);
    }

    @Test
    void testHappyPath2() {
        RemotableTextInput.Builder o = create();
        o.size = 2
        o.watermark = "foo"

        assertNotNull(o.build());
    }

    @Test
    void testOptional() {
        RemotableTextInput.Builder o = create();
        o.size = null
        o.watermark = null

        assertNotNull(o.build());
    }

    @Test(expected=IllegalArgumentException.class)
    void testbadSize() {
        RemotableTextInput.Builder o = create();
        o.size = 0

        assertNotNull(o.build());
    }

    @Test
	void testJAXB() {
		RemotableTextInput o = create().build();
		JAXBAssert.assertEqualXmlMarshalUnmarshal(o, XML, RemotableTextInput.class);
	}

    private RemotableTextInput.Builder create() {
		RemotableTextInput.Builder o = RemotableTextInput.Builder.create();
        o.size = 2
        o.watermark = "foo"
        return o
	}
}
{'fraction_non_alphanumeric': 0.12098427887901572, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 2.5023923444976077, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2896571', 'n_tokens_mistral': 485, 'n_tokens_neox': 469, 'n_words': 83}