01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: MapTest.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib.test;
10:
11: import java.lang.*;
12: import java.util.*;
13: import org.ozoneDB.DxLib.*;
14:
15: /**
16: *
17: *
18: * @author <a href="http://www.softwarebuero.de/">SMB</a>
19: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
20: */
21: public class MapTest extends AbstractTest {
22:
23: /**
24: */
25: public void containsKey(DxMap map, Object[] objs) throws Exception {
26: startTimer(map.getClass().getName(), "containsKey");
27: map.addAll(objs);
28: stopTimer();
29: //startTimer (map.getClass().getName(), "containsKey");
30:
31: for (int i = 0; i < objs.length; i++) {
32: if (!map.containsKey(objs[i])) {
33: error();
34: }
35: if (!map.containsKey(objs[i])) {
36: error();
37: }
38: }
39: if (map.containsKey(new DxString("hallo"))) {
40: error();
41: }
42: stopTimer();
43: }
44:
45: }
|