You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2018/03/19 23:26:11 UTC

[geode] branch develop updated: GEODE-4896: Delete com.gemstone.gemfire duplicate of FunctionExceptionTest

This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 1564f45  GEODE-4896: Delete com.gemstone.gemfire duplicate of FunctionExceptionTest
1564f45 is described below

commit 1564f45b474c1ca1e370b4055dad284f5677cad2
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Mon Mar 19 16:24:44 2018 -0700

    GEODE-4896: Delete com.gemstone.gemfire duplicate of FunctionExceptionTest
---
 .../cache/execute/FunctionExceptionTest.java       | 49 ----------------------
 1 file changed, 49 deletions(-)

diff --git a/geode-old-client-support/src/test/java/com/gemstone/gemfire/cache/execute/FunctionExceptionTest.java b/geode-old-client-support/src/test/java/com/gemstone/gemfire/cache/execute/FunctionExceptionTest.java
deleted file mode 100644
index 4f5580a..0000000
--- a/geode-old-client-support/src/test/java/com/gemstone/gemfire/cache/execute/FunctionExceptionTest.java
+++ /dev/null
@@ -1,49 +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 com.gemstone.gemfire.cache.execute;
-
-import static org.assertj.core.api.Assertions.*;
-import static org.mockito.Mockito.*;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import org.apache.geode.test.junit.categories.UnitTest;
-
-@Category(UnitTest.class)
-public class FunctionExceptionTest {
-
-  @Test
-  public void shouldBeMockable() throws Exception {
-    FunctionException mockFunctionException = mock(FunctionException.class);
-    Throwable cause = new Exception("message");
-    List<Throwable> listOfThrowables = new ArrayList<>();
-    Collection<? extends Throwable> collectionOfThrowables = new ArrayList<>();
-
-    when(mockFunctionException.getExceptions()).thenReturn(listOfThrowables);
-
-    mockFunctionException.addException(cause);
-    mockFunctionException.addExceptions(collectionOfThrowables);
-
-    verify(mockFunctionException, times(1)).addException(cause);
-    verify(mockFunctionException, times(1)).addExceptions(collectionOfThrowables);
-
-    assertThat(mockFunctionException.getExceptions()).isSameAs(listOfThrowables);
-  }
-}

-- 
To stop receiving notification emails like this one, please contact
klund@apache.org.