question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Functional test doc recommends using deprecated method

See original GitHub issue

This page https://www.playframework.com/documentation/2.5.x/JavaFunctionalTest contains the following code snippet under Creating Application instances for testing:

Application fakeAppWithGlobal = fakeApplication(new GlobalSettings() { ... });

But Helpers.fakeApplication(GlobalSettings) is deprecated.

On a related topic, should all of the variants of the Helpers.fakeApplication() method be deprecated? They all create FakeApplication objects and the FakeApplication class itself is deprecated.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcospereiracommented, Sep 25, 2017

@Shruti9520 the build failure was not related to your changes. The PR was merged and we can now close this issue.

Thank you!

1reaction
gmethvincommented, Sep 24, 2017

@Shruti9520 Sure. Note that this is only in the 2.5.x docs (not in master) so you have to submit your pull request to the 2.5.x branch. I think we can just remove the GlobalSettings example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecations and Removals — pytest documentation
Deprecations and Removals¶. This page lists all pytest features that are currently deprecated or have been removed in past major releases.
Read more >
java - @deprecated vs @Deprecated - Stack Overflow
@Deprecated is an annotation that is read by the compiler, used to mark a method as deprecated to the compiler and will generate...
Read more >
Deprecation checking and correction tools to prepare ... - Drupal
There are several automated tools to find and fix deprecations in your codebase.
Read more >
What is deprecated in IT? - TechTarget
Learn about deprecated in IT, which is when something is available or allowed, but is not recommended or that its failings are recognized....
Read more >
Deprecations | Android Enterprise - Google Developers
This page lists all the managed Google Play features which are currently in a deprecation period. This includes features and methods under ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found