mirror of
https://github.com/apache/poi.git
synced 2025-02-08 11:04:53 +00:00
bug 56154: rename setLastModifiedBy to setLastModifiedByUser
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751950 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c82332f02
commit
aa87a0597b
@ -302,11 +302,11 @@ public class POIXMLProperties {
|
|||||||
part.setLastPrintedProperty(date);
|
part.setLastPrintedProperty(date);
|
||||||
}
|
}
|
||||||
/** @since POI 3.15 beta 3 */
|
/** @since POI 3.15 beta 3 */
|
||||||
public String getLastModifiedBy() {
|
public String getLastModifiedByUser() {
|
||||||
return part.getLastModifiedByProperty().getValue();
|
return part.getLastModifiedByProperty().getValue();
|
||||||
}
|
}
|
||||||
/** @since POI 3.15 beta 3 */
|
/** @since POI 3.15 beta 3 */
|
||||||
public void setLastModifiedBy(String user) {
|
public void setLastModifiedByUser(String user) {
|
||||||
part.setLastModifiedByProperty(user);
|
part.setLastModifiedByProperty(user);
|
||||||
}
|
}
|
||||||
public Date getModified() {
|
public Date getModified() {
|
||||||
|
@ -209,11 +209,11 @@ public final class TestPOIXMLProperties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testLastModifiedByProperty() {
|
public void testLastModifiedByUserProperty() {
|
||||||
String lastModifiedBy = _coreProperties.getLastModifiedBy();
|
String lastModifiedByUser = _coreProperties.getLastModifiedByUser();
|
||||||
assertEquals("Paolo Mottadelli", lastModifiedBy);
|
assertEquals("Paolo Mottadelli", lastModifiedByUser);
|
||||||
_coreProperties.setLastModifiedBy("Test User");
|
_coreProperties.setLastModifiedByUser("Test User");
|
||||||
assertEquals("Test User", _coreProperties.getLastModifiedBy());
|
assertEquals("Test User", _coreProperties.getLastModifiedByUser());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean dateTimeEqualToUTCString(Date dateTime, String utcString) {
|
public static boolean dateTimeEqualToUTCString(Date dateTime, String utcString) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user