Package org.givwenzen.parse

Source Code of org.givwenzen.parse.StringToObjectParserTest

package org.givwenzen.parse;

import org.givwenzen.CustomParserFinder;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class StringToObjectParserTest {

    @Test
    public void shouldFindAdditionalMethodParameterParsersInBDDDotParse() throws Exception {
        String[] value = {"x"};
        Class<?>[] type = {CustomObjectForParsing.class};
        Object object = new StringToObjectParser(new CustomParserFinder()).convertParamertersToTypes(value, type)[0];
        assertEquals(new CustomObjectForParsing("x"), object);
    }
}
TOP

Related Classes of org.givwenzen.parse.StringToObjectParserTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.