Closed Bug 976833 Opened 12 years ago Closed 12 years ago

Override JUnit API methods in UITest

Categories

(Firefox for Android Graveyard :: Testing, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 30

People

(Reporter: mcomella, Assigned: mcomella)

References

Details

Attachments

(1 file, 1 obsolete file)

To prevent accidental usage. You probably want to throw `NotImplementedException`. This may or may not work as discussed in bug 976775 (e.g. might screw with Robotium), but give it a shot!
bug 976775 probably needs to land first, because sometimes junit is accidentally called.
Depends on: 976775
Whiteboard: [mentor
Whiteboard: [mentor=mcomella][lang=java]
Whiteboard: [mentor=mcomella][lang=java]
Attachment #8387221 - Flags: review?(lucasr.at.mozilla)
Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Comment on attachment 8387221 [details] [diff] [review] Override JUnit methods in UITest. Review of attachment 8387221 [details] [diff] [review]: ----------------------------------------------------------------- Nice. ::: mobile/android/base/tests/UITest.java @@ +239,5 @@ > + throw new UnsupportedOperationException(JUNIT_FAILURE_MSG); > + } > + > + // Note: inexplicably, javac does not think we're overriding these methods, > + // so we can't use the @Override annotation. Weird.
Attachment #8387221 - Flags: review?(lucasr.at.mozilla) → review+
Backed out for robocop failures on all platforms. Please make sure this passes on Try before your next attempt at pushing. https://hg.mozilla.org/integration/fx-team/rev/01d7be943857 https://tbpl.mozilla.org/php/getParsedLog.php?id=35802078&tree=Fx-Team
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #5) > Backed out for robocop failures on all platforms. Please make sure this > passes on Try before your next attempt at pushing. Sorry, it slipped my mind before: https://tbpl.mozilla.org/?tree=Try&rev=ac00185e3ceb
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: