Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add an optional format argument to getDeviceTime and update the documentation#939

Merged
mykola-mokhnach merged 3 commits intoappium:masterappium/java-client:masterfrom
mykola-mokhnach:formatmykola-mokhnach/java-client:formatCopy head branch name to clipboard
Jun 13, 2018
Merged

Add an optional format argument to getDeviceTime and update the documentation#939
mykola-mokhnach merged 3 commits intoappium:masterappium/java-client:masterfrom
mykola-mokhnach:formatmykola-mokhnach/java-client:formatCopy head branch name to clipboard

Conversation

@mykola-mokhnach
Copy link
Contributor

Change list

Now it is possible to explicitly set the format specifiers for the returned datetime. Also, the default response format is changed to ISO-8601

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)


@Test public void getDeviceTimeTest() {
String time = driver.getDeviceTime();
assertTrue(time.length() == 28);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import statement can also be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which import?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's still used by isAppInstalledTest and lockTest. Codacy usually highlights such cases automatically.

@appium appium deleted a comment Jun 13, 2018
@appium appium deleted a comment Jun 13, 2018
@appium appium deleted a comment Jun 13, 2018
@mykola-mokhnach mykola-mokhnach merged commit 7cbdcd4 into appium:master Jun 13, 2018
@mykola-mokhnach mykola-mokhnach deleted the format branch December 3, 2018 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.