This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new b956e98aa31 Revise AgentYamlEngineTest (#30280)
b956e98aa31 is described below

commit b956e98aa312ab21162314be4d450a4897532a2b
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Feb 25 09:58:11 2024 +0800

    Revise AgentYamlEngineTest (#30280)
---
 .../test/java/org/apache/shardingsphere/yaml/AgentYamlEngineTest.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/agent/core/src/test/java/org/apache/shardingsphere/yaml/AgentYamlEngineTest.java
 
b/agent/core/src/test/java/org/apache/shardingsphere/yaml/AgentYamlEngineTest.java
index ec6348a9b69..7a2d22bd50c 100644
--- 
a/agent/core/src/test/java/org/apache/shardingsphere/yaml/AgentYamlEngineTest.java
+++ 
b/agent/core/src/test/java/org/apache/shardingsphere/yaml/AgentYamlEngineTest.java
@@ -46,7 +46,7 @@ import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.jupiter.api.Assertions.assertNull;
 
-public class AgentYamlEngineTest {
+class AgentYamlEngineTest {
     
     @Test
     void assertUnmarshalYamlAgentConfiguration() throws IOException {
@@ -64,7 +64,6 @@ public class AgentYamlEngineTest {
     void assertUnmarshalYamlAdvisorsConfiguration() {
         InputStream inputStream = 
getClass().getResourceAsStream("/META-INF/conf/advisors.yaml");
         YamlAdvisorsConfiguration actual = 
AgentYamlEngine.unmarshalYamlAdvisorsConfiguration(inputStream);
-        
         assertYamlAdvisorConfiguration(actual.getAdvisors().iterator().next());
     }
     
@@ -101,7 +100,6 @@ public class AgentYamlEngineTest {
         assertThat(actual.getAdvice(), is(YamlAdviceFixture.class.getName()));
         assertThat(actual.getTarget(), 
is("org.apache.shardingsphere.agent.core.advisor.config.yaml.fixture.YamlTargetObjectFixture"));
         assertThat(actual.getAdvice(), 
is("org.apache.shardingsphere.agent.core.advisor.config.yaml.fixture.YamlAdviceFixture"));
-        
         assertThat(actual.getPointcuts().size(), is(8));
         List<YamlPointcutConfiguration> actualYamlPointcutConfigs = new 
ArrayList<>(actual.getPointcuts());
         assertYamlPointcutConfiguration(actualYamlPointcutConfigs.get(0), 
null, "constructor", Collections.emptyList());

Reply via email to