Example usage for org.apache.commons.collections4 BidiMap isEmpty

List of usage examples for org.apache.commons.collections4 BidiMap isEmpty

Introduction

In this page you can find the example usage for org.apache.commons.collections4 BidiMap isEmpty.

Prototype

boolean isEmpty();

Source Link

Document

Returns true if this map contains no key-value mappings.

Usage

From source file:de.decoit.simu.cbor.xml.dictionary.DictionaryTest.java

@Test
public void testClear() {
    DictionaryNamespace dns = new DictionaryNamespace(xmlName, cborName);

    Dictionary instance = new Dictionary();
    instance.addNamespace(dns);//from w w  w  .  ja v  a  2  s  .co m

    BidiMap<String, DictionaryNamespace> result = instance.getUnmodifiableNamespaces();
    instance.clear();

    assertTrue(result.isEmpty());
}