// Path: src/com/nvinayshetty/DTOnator/FieldRepresentors/StringFieldRepresentor.java
// public class StringFieldRepresentor extends FieldRepresentor {
//     @Override
//     public String getFieldRepresentationFor(AccessModifier accessModifier, String key) {
//         return accessModifier.getModifier() + "String" + suffix(key);
//     }
// 
//     @Override
//     protected String getKotlinValFieldRepresentationFor(AccessModifier accessModifier, String key) {
//         return "val " + key + " :String" + "\n";
//     }
// 
//     @Override
//     protected String getKotlinVarFieldRepresentationFor(AccessModifier accessModifier, String key) {
//         return "val " + key + " :String";
//     }
// 
// 
// }


import static junit.framework.TestCase.assertEquals;
import com.nvinayshetty.DTOnator.FieldCreator.AccessModifier;
import com.nvinayshetty.DTOnator.FieldRepresentors.StringFieldRepresentor;
import org.junit.Test;
/*
 * Copyright (C) 2015 Vinaya Prasad N
 *
 *         This program is free software: you can redistribute it and/or modify
 *         it under the terms of the GNU General Public License as published by
 *         the Free Software Foundation, either version 3 of the License, or
 *         (at your option) any later version.
 *
 *         This program is distributed in the hope that it will be useful,
 *         but WITHOUT ANY WARRANTY; without even the implied warranty of
 *         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *         GNU General Public License for more details.
 *
 *         You should have received a copy of the GNU General Public License
 *         along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package test.com.nvinayshetty.DTOnator.fieldRepresentors;




/**
 * Created by vinay on 1/8/15.
 */
public class StringFieldRepresentorShould {
    private String fieldName;

    @Test
    public void CreatePublicFieldWhenAcessModifierIsPublic() {
        fieldName = "valid";
// Path: src/com/nvinayshetty/DTOnator/FieldRepresentors/StringFieldRepresentor.java
// public class StringFieldRepresentor extends FieldRepresentor {
//     @Override
//     public String getFieldRepresentationFor(AccessModifier accessModifier, String key) {
//         return accessModifier.getModifier() + "String" + suffix(key);
//     }
// 
//     @Override
//     protected String getKotlinValFieldRepresentationFor(AccessModifier accessModifier, String key) {
//         return "val " + key + " :String" + "\n";
//     }
// 
//     @Override
//     protected String getKotlinVarFieldRepresentationFor(AccessModifier accessModifier, String key) {
//         return "val " + key + " :String";
//     }
// 
// 
// }


// Path: src/test/com/nvinayshetty/DTOnator/fieldRepresentors/StringFieldRepresentorShould.java
import static junit.framework.TestCase.assertEquals;
import com.nvinayshetty.DTOnator.FieldCreator.AccessModifier;
import com.nvinayshetty.DTOnator.FieldRepresentors.StringFieldRepresentor;
import org.junit.Test;

/*
 * Copyright (C) 2015 Vinaya Prasad N
 *
 *         This program is free software: you can redistribute it and/or modify
 *         it under the terms of the GNU General Public License as published by
 *         the Free Software Foundation, either version 3 of the License, or
 *         (at your option) any later version.
 *
 *         This program is distributed in the hope that it will be useful,
 *         but WITHOUT ANY WARRANTY; without even the implied warranty of
 *         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *         GNU General Public License for more details.
 *
 *         You should have received a copy of the GNU General Public License
 *         along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package test.com.nvinayshetty.DTOnator.fieldRepresentors;




/**
 * Created by vinay on 1/8/15.
 */
public class StringFieldRepresentorShould {
    private String fieldName;

    @Test
    public void CreatePublicFieldWhenAcessModifierIsPublic() {
        fieldName = "valid";
        String actual = new StringFieldRepresentor().getFieldRepresentationFor(AccessModifier.PUBLIC, fieldName);