commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (LANG-1366) Add Feature for No ClassName and MultiLine StringStyle
Date Sat, 05 Oct 2019 05:25:00 GMT

     [ https://issues.apache.org/jira/browse/LANG-1366?focusedWorklogId=323875&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-323875
]

ASF GitHub Bot logged work on LANG-1366:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Oct/19 05:24
            Start Date: 05/Oct/19 05:24
    Worklog Time Spent: 10m 
      Work Description: kinow commented on pull request #308: LANG-1366 : Add Feature for
No ClassName and MultiLine StringStyle
URL: https://github.com/apache/commons-lang/pull/308#discussion_r331733502
 
 

 ##########
 File path: src/test/java/org/apache/commons/lang3/builder/NoClassNameMultiLineToStringStyleTest.java
 ##########
 @@ -0,0 +1,127 @@
+/*
+ * 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 org.apache.commons.lang3.builder;
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.builder.ToStringStyleTest.Person;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * Unit tests {@link org.apache.commons.lang3.builder.NoClassNameMultiLineToStringStyleTest}.
+ */
+public class NoClassNameMultiLineToStringStyleTest {
 
 Review comment:
   Hi @Stzx 
   
   Unfortunately I haven't had much experience with JUnit 5 yet. Looks to me like it will
support multiple modifiers. But I couldn't find a recommendation, or even any deprecation,
that would require dropping the `public` modifier. Do you know if that's a best practice,
recommendation, or if it will be deprecated/required later?
   
   I found at least one file in their repo using the `public` modifier: https://github.com/junit-team/junit5/blob/f52ded2d2f331ca7dba738b53afa5b1c0f22a85d/platform-tests/src/jmh/java/org/junit/jupiter/jmh/AssertionBenchmarks.java
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 323875)
    Time Spent: 1h 20m  (was: 1h 10m)

> Add Feature for No ClassName and MultiLine StringStyle
> ------------------------------------------------------
>
>                 Key: LANG-1366
>                 URL: https://issues.apache.org/jira/browse/LANG-1366
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Karthikeyan Palanivelu
>            Priority: Major
>              Labels: features
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Add feature to print String with No Class Name and MultiLine. This would be of helpful
for more like metrics related use cases which needs to print like properties with No Class
Name and each property in new line.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message