File tree Expand file tree Collapse file tree 3 files changed +2
-17
lines changed
app-builder/plugins/aipp-plugin/src
main/java/modelengine/fit/jober/aipp/service/impl
test/java/modelengine/fit/jober/aipp/service Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 66
77package modelengine .fit .jober .aipp .service .impl ;
88
9- import modelengine .fit .jane .common .entity .OperationContext ;
10- import modelengine .fit .jober .aipp .dto .check .AppCheckDto ;
11- import modelengine .fit .jober .aipp .dto .check .CheckResult ;
12-
139import modelengine .fitframework .annotation .Component ;
1410
15- import java .util .List ;
16-
1711/**
1812 * 普通检索节点的checker
1913 *
2216 */
2317@ Component
2418public class RetrievalNodeChecker extends AbstractNodeChecker {
25- @ Override
26- public List <CheckResult > validate (AppCheckDto appCheckDto , OperationContext context ) {
27- return this .invalidNodeConfig (appCheckDto , appCheckDto .getType ());
28- }
2919}
Original file line number Diff line number Diff line change @@ -572,8 +572,7 @@ void testModelNode() {
572572 mockedStatic .when (() -> CheckerFactory .getChecker (anyString ())).thenReturn (new RetrievalNodeChecker ());
573573 List <CheckResult > results =
574574 this .appBuilderAppService .checkAvailable (Collections .singletonList (appCheckDto ), null );
575- Assertions .assertFalse (results .get (0 ).isValid ());
576- Assertions .assertEquals (results .get (0 ).getConfigChecks ().size (), 2 );
575+ Assertions .assertTrue (results .isEmpty ());
577576 }
578577 }
579578
Original file line number Diff line number Diff line change @@ -130,11 +130,7 @@ public void testRetrievalNode() {
130130 + "\" createdAt\" :\" 2024-12-02 12:41:14\" ,\" checked\" :true}]}]}" ;
131131 AppCheckDto appCheckDto = JsonUtils .parseObject (testNode , AppCheckDto .class );
132132 List <CheckResult > results = this .retrievalNodeChecker .validate (appCheckDto , null );
133- Assertions .assertEquals (results .size (), 2 );
134- Assertions .assertFalse (results .get (0 ).isValid ());
135- Assertions .assertEquals (results .get (0 ).getConfigChecks ().size (), 2 );
136- Assertions .assertFalse (results .get (1 ).isValid ());
137- Assertions .assertEquals (results .get (1 ).getConfigChecks ().size (), 1 );
133+ Assertions .assertTrue (results .isEmpty ());
138134 }
139135 }
140136
You can’t perform that action at this time.
0 commit comments