poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1751950 - in /poi/trunk/src/ooxml: java/org/apache/poi/POIXMLProperties.java testcases/org/apache/poi/TestPOIXMLProperties.java
Date Fri, 08 Jul 2016 18:05:03 GMT
Author: onealj
Date: Fri Jul  8 18:05:02 2016
New Revision: 1751950

URL: http://svn.apache.org/viewvc?rev=1751950&view=rev
Log:
bug 56154: rename setLastModifiedBy to setLastModifiedByUser

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/POIXMLProperties.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/TestPOIXMLProperties.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/POIXMLProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/POIXMLProperties.java?rev=1751950&r1=1751949&r2=1751950&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/POIXMLProperties.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/POIXMLProperties.java Fri Jul  8 18:05:02 2016
@@ -302,11 +302,11 @@ public class POIXMLProperties {
             part.setLastPrintedProperty(date);
         }
         /** @since POI 3.15 beta 3 */
-        public String getLastModifiedBy() {
+        public String getLastModifiedByUser() {
             return part.getLastModifiedByProperty().getValue();
         }
         /** @since POI 3.15 beta 3 */
-        public void setLastModifiedBy(String user) {
+        public void setLastModifiedByUser(String user) {
             part.setLastModifiedByProperty(user);
         }
         public Date getModified() {

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/TestPOIXMLProperties.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/TestPOIXMLProperties.java?rev=1751950&r1=1751949&r2=1751950&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/TestPOIXMLProperties.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/TestPOIXMLProperties.java Fri Jul  8 18:05:02
2016
@@ -209,11 +209,11 @@ public final class TestPOIXMLProperties
     }
 
     @Test
-    public void testLastModifiedByProperty() {
-        String lastModifiedBy = _coreProperties.getLastModifiedBy();
-        assertEquals("Paolo Mottadelli", lastModifiedBy);
-        _coreProperties.setLastModifiedBy("Test User");
-        assertEquals("Test User", _coreProperties.getLastModifiedBy());
+    public void testLastModifiedByUserProperty() {
+        String lastModifiedByUser = _coreProperties.getLastModifiedByUser();
+        assertEquals("Paolo Mottadelli", lastModifiedByUser);
+        _coreProperties.setLastModifiedByUser("Test User");
+        assertEquals("Test User", _coreProperties.getLastModifiedByUser());
     }
 
     public static boolean dateTimeEqualToUTCString(Date dateTime, String utcString) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message