Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 78F57200C3F for ; Wed, 8 Mar 2017 02:50:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7780B160B74; Wed, 8 Mar 2017 01:50:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BCFC9160B68 for ; Wed, 8 Mar 2017 02:50:01 +0100 (CET) Received: (qmail 9009 invoked by uid 500); 8 Mar 2017 01:50:01 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 8982 invoked by uid 99); 8 Mar 2017 01:50:00 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2017 01:50:00 +0000 Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 88B6C1A00C5 for ; Wed, 8 Mar 2017 01:50:00 +0000 (UTC) Received: by mail-qk0-f170.google.com with SMTP id y76so38491950qkb.0 for ; Tue, 07 Mar 2017 17:50:00 -0800 (PST) X-Gm-Message-State: AMke39l1wy3Q4emUNvsfzbEviP2c7CG4IUGJaQG66+p06yuQVF8SVkNaJJZ9qGZsP6czYAIIHUlRx5PY65J9Azyj X-Received: by 10.237.34.59 with SMTP id n56mr4631003qtc.231.1488937799728; Tue, 07 Mar 2017 17:49:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.32.163 with HTTP; Tue, 7 Mar 2017 17:49:59 -0800 (PST) From: Kirk Lund Date: Tue, 7 Mar 2017 17:49:59 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Upgrading to Mockito 2 To: geode Content-Type: multipart/alternative; boundary=001a1141ac38a5656a054a2e58ea archived-at: Wed, 08 Mar 2017 01:50:02 -0000 --001a1141ac38a5656a054a2e58ea Content-Type: text/plain; charset=UTF-8 I've started upgrading to Mockito 2. The branch feature/GEODE-2558 has been created, and I pushed the initial commit which upgrades to Mockito 2.7.11 and Powermock 1.7.0RC2. There were compilation errors in 34 test classes which have been fixed already. GEODE-2558: https://issues.apache.org/jira/browse/GEODE-2558 Here's the initial change-set: https://git-wip-us.apache.org/repos/asf?p=geode.git;h=ee0ab01 My first pass at precheckin shows 23 failures in geode-core (8 test classes) and 3 failures in geode-lucene (2 test classes). These are all unit tests using Mockito. I'd like to open this up to other contributors to help fix these test failures. Here's a really good blog article about upgrading to Mockito 2.1: https://asolntsev.github.io/en/2016/10/11/mockito-2.1/ Based on reading that article, I suspect we need to fix up the way these 10 test classes are using Mockito. Each test class which currently has any Mockito 2 related failures now has a sub-task filed under GEODE-2558. 1) assign the sub-task to yourself 2) click start progress 3) create feature branch for the sub-task 4) when you file the PR be sure to file it against feature/GEODE-2558 Here are examples of creating a feature branch for the sub-task I'm going to work on (GEODE-2628 StatisticsImplTest): git: $ git checkout -b feature/GEODE-2628 feature/GEODE-2558 git-flow: $ git flow feature start GEODE-2628 feature/GEODE-2558 --001a1141ac38a5656a054a2e58ea--