From f7714457c3fb398d095b01f5bf0a682d5fe23373 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Thu, 26 Jan 2006 16:41:57 +0000 Subject: 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. --- ridljar/test/com/sun/star/uno/Any_Test.java | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 ridljar/test/com/sun/star/uno/Any_Test.java (limited to 'ridljar/test/com') 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); + } +} -- cgit -23.05'>distro/collabora/co-23.05 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/leak-suppress.txt
AgeCommit message (Expand)Author
2016-01-16Readd accidentally deleted fileChris Sherlock
2016-01-16vcl: remove commented out lines from commit 0174562fa9eChris Sherlock