/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.essar.automation.dhaval.javatojava;

import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author dhaval
 */
public class ClassConverterTest {

    public ClassConverterTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of convert method, of class ClassConverter.
     */
    @Test
    public void testConvert() {
        System.out.println("convert");

        Map<Class, Class> typeMap =new HashMap<Class, Class>();
        typeMap.put(String.class, double.class);

        ClassConverter instance = new ClassConverter(ClassConverterTest.Hello.class, typeMap);
        instance.convert();
    }

    public static void main(String[] args){
        ClassConverterTest test = new ClassConverterTest();
        test.testConvert();
    }

    public static class Hello{
        private String length;
        private String thickness;
    }
}