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
ed4ae3fff0
commit
9c00c18f38
@ -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
Block a user