diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-01-26 16:41:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-01-26 16:41:57 +0000 |
commit | f7714457c3fb398d095b01f5bf0a682d5fe23373 (patch) | |
tree | 432ec0846f353c0de2bda97916d1ee55be959b47 /ridljar/test | |
parent | 6337eb13097eacbe77dedde1111b2663fc9a488d (diff) |
INTEGRATION: CWS sb46 (1.1.2); FILE ADDED
2006/01/13 11:53:49 sb 1.1.2.1: #i60341# Enforce that an Any does not wrap another Any.
Diffstat (limited to 'ridljar/test')
-rw-r--r-- | ridljar/test/com/sun/star/uno/Any_Test.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ridljar/test/com/sun/star/uno/Any_Test.java b/ridljar/test/com/sun/star/uno/Any_Test.java new file mode 100644 index 000000000000..9a11074b9c8e --- /dev/null +++ b/ridljar/test/com/sun/star/uno/Any_Test.java @@ -0,0 +1,54 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: Any_Test.java,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: hr $ $Date: 2006-01-26 17:41:57 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +package com.sun.star.uno; + +import complexlib.ComplexTestCase; + +public final class Any_Test extends ComplexTestCase { + public String[] getTestMethodNames() { + return new String[] { "testAnyAny" }; + } + + public void testAnyAny() { + boolean caught = false; + try { + new Any(Type.ANY, null); + } catch (IllegalArgumentException e) { + caught = true; + } + assure(caught); + } +} |