PageRenderTime 84ms CodeModel.GetById 50ms app.highlight 2ms RepoModel.GetById 21ms app.codeStats 0ms

/v3.2/nimbits-tds/test/TestCommonIdentifier.java

http://nimbits-server.googlecode.com/
Java | 35 lines | 12 code | 5 blank | 18 comment | 0 complexity | 3c91b18476816ff26080ed02f74a3ae8 MD5 | raw file
 1/*
 2 * Copyright (c) 2010 Tonic Solutions LLC.
 3 *
 4 * http://www.nimbits.com
 5 *
 6 *
 7 * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
 8 *
 9 * http://www.gnu.org/licenses/gpl.html
10 *
11 * Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
12 */
13
14import com.nimbits.client.model.common.CommonFactoryLocator;
15import com.nimbits.client.model.email.EmailAddress;
16import org.junit.Assert;
17import org.junit.Test;
18
19/**
20 * Created by bsautner
21 * User: benjamin
22 * Date: 8/7/11
23 * Time: 6:22 PM
24 */
25public class TestCommonIdentifier {
26
27    @Test
28    public void testToString() {
29        EmailAddress e = CommonFactoryLocator.getInstance().createEmailAddress("b@b.com");
30        Assert.assertEquals(e.getValue(), e.toString());
31        Assert.assertEquals(e.getValue(), "" + e);
32    }
33
34
35}