File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/test/java/com/magento/idea/magento2plugin/util Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
16
16
/**
17
17
* Utility class for mocking the PhpBundle in tests.
18
- *
18
+ * <p>
19
19
* This class provides methods to set up a mock for the PhpBundle,
20
20
* which will return a fixed value for any key, avoiding the need for actual message keys in tests.
21
21
*/
@@ -88,7 +88,8 @@ private static void clearResourceBundleCache() throws Exception {
88
88
// If cacheList field is not found, try the newer implementation (Java 9+)
89
89
try {
90
90
// Get the clearCache method
91
- final Method clearCacheMethod = ResourceBundle .class .getDeclaredMethod ("clearCache" );
91
+ final Method clearCacheMethod =
92
+ ResourceBundle .class .getDeclaredMethod ("clearCache" );
92
93
clearCacheMethod .setAccessible (true );
93
94
94
95
// Call the method to clear the cache
Original file line number Diff line number Diff line change 11
11
12
12
/**
13
13
* Mock implementation of ResourceBundle for testing.
14
- *
14
+ * <p>
15
15
* This class provides a dummy ResourceBundle that returns a fixed value for any key,
16
16
* avoiding the need for actual message keys in tests.
17
17
*/
You can’t perform that action at this time.
0 commit comments