mirror of https://github.com/apache/poi.git
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);
|
||||
}
|
||||
/** @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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue