@@ -0,0 +1,2164 @@
+package fi.vincit.jmobster.processor.frameworks.backbone.type;%0A%0A/*%0A * Copyright 2012 Juha Siponen%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Aimport fi.vincit.jmobster.processor.model.ModelField;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collection;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0A@RunWith(Parameterized.class)%0Apublic class BackboneFieldTypeConverterManagerTest %7B%0A%0A    public static final String NUMBER = %22'Number'%22;%0A    public static final String TEXT = %22'Text'%22;%0A    public static final String NOTHING = %22%22;%0A    private Class input;%0A    private String expected;%0A%0A    public BackboneFieldTypeConverterManagerTest(Class input, String expected) %7B%0A        this.input = input;%0A        this.expected = expected;%0A    %7D%0A%0A    @Parameterized.Parameters%0A    public static Collection primeNumbers() %7B%0A        return Arrays.asList(new Object%5B%5D%5B%5D%7B%0A                %7BInteger.class, NUMBER%7D,%0A                %7BLong.class, NUMBER%7D,%0A                %7BDouble.class, NUMBER%7D,%0A                %7BFloat.class, NUMBER%7D,%0A                %7BString.class, TEXT%7D,%0A                %7BObject.class, NOTHING%7D%0A        %7D);%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        BackboneFieldTypeConverterManager converter =%0A                new BackboneFieldTypeConverterManager();%0A        ModelField field = mock(ModelField.class);%0A        when(field.getFieldType()).thenReturn(input);%0A        assertThat(converter.getType(field), is(expected));%0A    %7D%0A%7D%0A

Add tests for BackboneFieldTypeConverterManager