summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorJoachim Sauer <jsauer@google.com>2016-12-15 15:28:35 +0000
committerJoachim Sauer <jsauer@google.com>2017-01-30 11:54:34 +0000
commit986666b60bfe25276fc3a8e5e4b6ce96d94b58b7 (patch)
treeea171d01ac430b8a2a07b577751c5295e3b99697 /annotations/generate_annotated_java_files.py
parent19517bad609c70295520d7e354487cac839d8d34 (diff)
Use BeforeClass instead of BeforeMethod.
Several java.time tests use @BeforeMethod to populate a field that is used as in @DataProvider methods. @BeforeMethod runs after @DataProvider is executed, 'though. The only reason this worked is because the first test that's run in those tests doesn't use the @DataProvider, so by the time it's executed, the field will already have been populated. Change the field initialization to use @BeforeClass and change the affected fields to static. Test: CtsLibcoreOjTestCases Bug: 28832222 Change-Id: I499dde830a456dced8375632c45801640f795e33
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions