Skip to content

Commit af72ae0

Browse files
da-dakenxintongsong
authored andcommitted
[test]ResourceCheckTest add Apache licence
1 parent 59d8178 commit af72ae0

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

e2e-test/flink-agents-end-to-end-tests-integration/src/test/java/org/apache/flink/agents/integration/test/ResourceCheckTest.java

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package org.apache.flink.agents.integration.test;
219

320
import org.apache.flink.agents.api.resource.ResourceName;
@@ -11,7 +28,8 @@
1128
import static org.assertj.core.api.Assertions.assertThat;
1229

1330
/**
14-
* Verify that the Java class name defined in {@link ResourceName} corresponds to a class that exists.
31+
* Verify that the Java class name defined in {@link ResourceName} corresponds to a class that
32+
* exists.
1533
*/
1634
public class ResourceCheckTest {
1735

@@ -24,8 +42,9 @@ public void checkResourceNameJavaClassesExist() throws Exception {
2442
collectAndCheckJavaClasses(ResourceName.class, "", false, missing);
2543

2644
assertThat(missing)
27-
.as("The following Java class does not exist in ResourceName, please check the class name or module dependencies: %s"
28-
, missing)
45+
.as(
46+
"The following Java class does not exist in ResourceName, please check the class name or module dependencies: %s",
47+
missing)
2948
.isEmpty();
3049
}
3150

0 commit comments

Comments
 (0)