From commits-return-7890-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Tue Jan 1 10:21:23 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E691F18066C for ; Tue, 1 Jan 2019 10:21:22 +0100 (CET) Received: (qmail 73075 invoked by uid 500); 1 Jan 2019 09:21:21 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 73066 invoked by uid 99); 1 Jan 2019 09:21:21 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2019 09:21:21 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4F03A821AE; Tue, 1 Jan 2019 09:21:21 +0000 (UTC) Date: Tue, 01 Jan 2019 09:21:21 +0000 To: "commits@groovy.apache.org" Subject: [groovy] branch master updated: test already covered by groovyTestCase cases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <154633448119.9818.15381916155976696537@gitbox.apache.org> From: paulk@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: groovy X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 05187858f9a20978daa82a305a6a60da4e711b0b X-Git-Newrev: 438d5e605d02c7e836161ef6b905d70efe034efb X-Git-Rev: 438d5e605d02c7e836161ef6b905d70efe034efb X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git The following commit(s) were added to refs/heads/master by this push: new 438d5e6 test already covered by groovyTestCase cases 438d5e6 is described below commit 438d5e605d02c7e836161ef6b905d70efe034efb Author: Paul King AuthorDate: Tue Jan 1 19:21:07 2019 +1000 test already covered by groovyTestCase cases --- src/test/groovy/ImmutableModificationTest.groovy | 43 ------------------------ 1 file changed, 43 deletions(-) diff --git a/src/test/groovy/ImmutableModificationTest.groovy b/src/test/groovy/ImmutableModificationTest.groovy deleted file mode 100644 index 3647057..0000000 --- a/src/test/groovy/ImmutableModificationTest.groovy +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package groovy - -/** - * check that the new asImmutable() method works - * as specified in GROOVY-623 - * - * @author Jeremy Rayner - */ - -class ImmutableModificationTest extends GroovyTestCase { - void testCollectionAsImmutable() { - def challenger = ["Telson", "Sharna", "Darv", "Astra"] - def hopefullyImmutable = challenger.asImmutable() - try { - challenger.add("Angel One") - challenger << "Angel Two" - - // @todo fail("'challenger' is supposed to be an immutable collection.") - - } catch (UnsupportedOperationException e) { - // success if this exception is thrown - assert 4 == challenger.size() - } - } -} \ No newline at end of file