@@ -0,0 +1,1947 @@
+/*%0A * Copyright (c) 2015 NECTEC%0A *   National Electronics and Computer Technology Center, Thailand%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%0Apackage th.or.nectec.tanrabad.entity;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotEquals;%0A%0Apublic class ContainerTypeTest %7B%0A%0A    private final int containerTypeId1 = 1;%0A    private final String containerTypeName1 = %22%E0%B8%99%E0%B9%89%E0%B8%B3%E0%B9%83%E0%B8%8A%E0%B9%89%22;%0A    private final ContainerType containerType1 = new ContainerType(containerTypeId1, containerTypeName1);%0A%0A    @Test%0A    public void testGetName() %7B%0A        assertEquals(containerTypeName1, containerType1.getName());%0A    %7D%0A%0A    @Test%0A    public void testGetId() %7B%0A        assertEquals(containerTypeId1, containerType1.getId());%0A    %7D%0A%0A    @Test%0A    public void containerWithDifferentNameMustNotEquals() %7B%0A        ContainerType containerType2 = new ContainerType(containerTypeId1, %22%E0%B9%81%E0%B8%88%E0%B8%81%E0%B8%B1%E0%B8%99%22);%0A        assertNotEquals(containerType1, containerType2);%0A    %7D%0A%0A    @Test%0A    public void containerWithDifferentIdMustNotEquals() %7B%0A        ContainerType containerType2 = new ContainerType(3, containerTypeName1);%0A        assertNotEquals(containerType1, containerType2);%0A    %7D%0A%0A    @Test%0A    public void containerWithTheSameNameAndIdMustEquals() %7B%0A        ContainerType containerType2 = new ContainerType(containerTypeId1, containerTypeName1);%0A        assertEquals(containerType1, containerType2);%0A%0A    %7D%0A%7D

test สำหรับ entity Container