|
| 1 | +/* Copyright (C) 2021 Egon Willighagen <egonw@users.sf.net> |
| 2 | + * |
| 3 | + * Contact: cdk-devel@lists.sourceforge.net |
| 4 | + * |
| 5 | + * This program is free software; you can redistribute it and/or |
| 6 | + * modify it under the terms of the GNU Lesser General Public License |
| 7 | + * as published by the Free Software Foundation; either version 2.1 |
| 8 | + * of the License, or (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU Lesser General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU Lesser General Public License |
| 16 | + * along with this program; if not, write to the Free Software |
| 17 | + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | + */ |
| 19 | +package org.openscience.cdk.dict; |
| 20 | + |
| 21 | +import java.util.Iterator; |
| 22 | + |
| 23 | +import org.junit.Assert; |
| 24 | +import org.junit.Test; |
| 25 | +import org.openscience.cdk.CDKTestCase; |
| 26 | + |
| 27 | +/** |
| 28 | + * Checks the functionality of the DefaultHanlder class. |
| 29 | + * |
| 30 | + * @cdk.module test-extra |
| 31 | + * |
| 32 | + * @see org.openscience.cdk.dict.DefaultHanlder |
| 33 | + */ |
| 34 | +public class DictionaryTest extends CDKTestCase { |
| 35 | + |
| 36 | + @Test |
| 37 | + public void testDefaultHanlder() { |
| 38 | + DictionaryDatabase db = new DictionaryDatabase(); |
| 39 | + Dictionary dict = db.getDictionary("chemical"); // this dictionary needs the DefaultHanlder |
| 40 | + Entry entry = dict.getEntry("ionPair".toLowerCase()); |
| 41 | + Assert.assertNotNull(entry); |
| 42 | + } |
| 43 | + |
| 44 | +} |
0 commit comments