mirror of
https://github.com/samsonjs/media.git
synced 2026-04-14 12:45:47 +00:00
* @Before and @After usage. [1]. * static fields before non-static. [2]. @Before method should typically be paired with an @After method, focused on ensuring that the component is released regardless of what the test does. In tests, inlining final class variables is preferrable [1]. In general things like the file path should be part of the test (the @Rule means we don't need before/after) if only used once. Statically importing values and using them directly is preferable to having a variable declared as non-final that's effectively final, because from a readability perspective someone can see (the caps) that the value is final static and immutable, so doesn't have to check if it's changed/reassigned. PiperOrigin-RevId: 586697887 |
||
|---|---|---|
| .. | ||
| androidTest | ||
| main | ||
| test | ||