Package org.springframework.roo.classpath.details.annotations

Source Code of org.springframework.roo.classpath.details.annotations.BooleanAttributeValueTest

package org.springframework.roo.classpath.details.annotations;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.springframework.roo.model.JavaSymbolName;

/**
* Unit test of {@link BooleanAttributeValue}
*
* @author Andrew Swan
* @since 1.2.0
*/
public class BooleanAttributeValueTest {

    @Test
    public void testToStringWhenFalse() {
        assertEquals("foo -> false", new BooleanAttributeValue(
                new JavaSymbolName("foo"), false).toString());
    }

    @Test
    public void testToStringWhenTrue() {
        assertEquals("bar -> true", new BooleanAttributeValue(
                new JavaSymbolName("bar"), true).toString());
    }
}
TOP

Related Classes of org.springframework.roo.classpath.details.annotations.BooleanAttributeValueTest

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.