-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41aba33
commit 5acbf29
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
original-plugin-raw/zh/inspectionDescriptions/JUnit5MalformedParameterized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<html> | ||
<body> | ||
报告来源格式错误的形参化测试: | ||
<ul> | ||
<li> | ||
<code>MethodSource</code> 具有未知目标或方法不为 static、无实参。 | ||
</li> | ||
<li> | ||
<code>ValueSource</code> / <code>EnumSource</code> 类型不能转换为方法形参。 | ||
</li> | ||
<li> | ||
未定义来源。 | ||
</li> | ||
</ul> | ||
<p>示例:</p> | ||
<pre><code> | ||
class Test { | ||
@MethodSource("parameters") | ||
@ParameterizedTest | ||
void foo(String param) {} | ||
} | ||
</code></pre> | ||
<p>在应用快速修复后:</p> | ||
<pre><code> | ||
class Test { | ||
private static Stream<Arguments> parameters() { | ||
return Stream.empty(); | ||
} | ||
|
||
@MethodSource("parameters") | ||
@ParameterizedTest | ||
void foo(String param) {} | ||
} | ||
</code></pre> | ||
<!-- tooltip end --> | ||
<p> | ||
<small>2017.2 最新变化</small> | ||
</body> | ||
</html> |
Binary file not shown.
39 changes: 39 additions & 0 deletions
39
plugin-dev-raw/zh/inspectionDescriptions/JUnit5MalformedParameterized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<html> | ||
<body> | ||
報告來源格式錯誤的參數化測試: | ||
<ul> | ||
<li> | ||
<code>MethodSource</code> 具有未知目標或方法不為 static、無實參。 | ||
</li> | ||
<li> | ||
<code>ValueSource</code> / <code>EnumSource</code> 類型不能轉換為方法參數。 | ||
</li> | ||
<li> | ||
未定義來源。 | ||
</li> | ||
</ul> | ||
<p>示例:</p> | ||
<pre><code> | ||
class Test { | ||
@MethodSource("parameters") | ||
@ParameterizedTest | ||
void foo(String param) {} | ||
} | ||
</code></pre> | ||
<p>在應用快速修復後:</p> | ||
<pre><code> | ||
class Test { | ||
private static Stream<Arguments> parameters() { | ||
return Stream.empty(); | ||
} | ||
|
||
@MethodSource("parameters") | ||
@ParameterizedTest | ||
void foo(String param) {} | ||
} | ||
</code></pre> | ||
<!-- tooltip end --> | ||
<p> | ||
<small>2017.2 最新變化</small> | ||
</body> | ||
</html> |