Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3E3618F52 for ; Sat, 16 Jan 2016 23:43:29 +0000 (UTC) Received: (qmail 2559 invoked by uid 500); 16 Jan 2016 23:43:29 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 2505 invoked by uid 500); 16 Jan 2016 23:43:29 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 2493 invoked by uid 99); 16 Jan 2016 23:43:29 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jan 2016 23:43:29 +0000 Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPS id 7D2831A0040 for ; Sat, 16 Jan 2016 23:43:29 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 99459600E2; Sat, 16 Jan 2016 23:43:28 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 58787] [PATCH] Border Drawing utility that does not create unnecessary styles Date: Sat, 16 Jan 2016 23:43:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: SS Common X-Bugzilla-Version: 3.14-dev X-Bugzilla-Keywords: PatchAvailable X-Bugzilla-Severity: enhancement X-Bugzilla-Who: onealj@apache.org X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=58787 Javen O'Neal changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #2 from Javen O'Neal --- It looks like all the changes in patch.tar.gz/patch.txt were committed in bug 58633 and bug 58879. I think the two tests from TestCellUtil.java were committed as part of bug 58633. If not, could you rebase your changes, and rewrite to use junit4 instead of junit3? For CellBorder.java, you might want to use an enum here so that CellBorders can be used in switch statements in Java 6, and also improves code quality due to type checking. See SpreadsheetVersion's implementation if you need an example. For another example, see o.a.p.ss.usermodel.HorizontalAlignment. Functions in CellBorder.java should have unit tests before this is committed. Per comment 1, if creating unnecessary intermediate elements is still an issue after bug 58633, please write a unit test for that. Thanks for the DrawingBorders example! ==== Side-note about JUnit testing in POI ==== You'll find two different flavors of unit tests in Apache POI There's junit3: import junit.framework.TestCase; public class TestSomeClass extends TestCase { public void testSomeMethod() { } } and junit4: import org.unit.Test; public class TestSomeClass { @Test public void testSomeMethod() { } } We're slowly trying to convert our junit3 tests over to junit4. There are a few reasons for this: * junit4 has new features that are more flexible * inheritance: we don't need to inherit from TestCase, making it easier to inherit from a base class that makes the tests more concise (see BaseTestWorkbook, TestXSSFWorkbook) * Don't need to build and maintain test suite classes--that is, classes that just list the TestCase classes to be run. New tests should be written in junit4. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org