17e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki/* 27e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * Copyright (C) 2010 The Android Open Source Project 37e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * 47e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * Licensed under the Apache License, Version 2.0 (the "License"); 57e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * you may not use this file except in compliance with the License. 67e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * You may obtain a copy of the License at 77e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * 87e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * http://www.apache.org/licenses/LICENSE-2.0 97e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * 107e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * Unless required by applicable law or agreed to in writing, software 117e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * distributed under the License is distributed on an "AS IS" BASIS, 127e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * See the License for the specific language governing permissions and 147e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki * limitations under the License. 157e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki */ 167e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 177e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onukipackage com.android.email.mail.store.imap; 187e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 197e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onukiimport com.android.email.mail.store.imap.ImapElement; 207e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 217e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onukiimport android.test.suitebuilder.annotation.SmallTest; 227e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 237e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onukiimport junit.framework.TestCase; 247e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 257e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki@SmallTest 267e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onukipublic class ImapElementTest extends TestCase { 277e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 287e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki /** Test for {@link ImapElement#NONE} */ 297e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki public void testNone() { 307e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki assertFalse(ImapElement.NONE.isList()); 317e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki assertFalse(ImapElement.NONE.isString()); 327e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki 337e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki assertTrue(ImapElement.NONE.equalsForTest(ImapElement.NONE)); 347e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki assertFalse(ImapElement.NONE.equalsForTest(null)); 357e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki assertFalse(ImapElement.NONE.equalsForTest(ImapTestUtils.STRING_1)); 367e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki assertFalse(ImapElement.NONE.equalsForTest(ImapTestUtils.LIST_1)); 377e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki } 387e5ba0e1eaee76ab6e6c7ea9362348f660796596Makoto Onuki} 39