From 88881851359ba33eaff1785b131978891d3e2c9e Mon Sep 17 00:00:00 2001 From: Zen Huifer Date: Fri, 22 Sep 2023 09:36:21 +0800 Subject: [PATCH] write a line into test.file --- ...s6dcd93dc-58e8-11ee-b102-acde48001122.java | 24 +++++++ ...s6e0f25fe-58e8-11ee-b102-acde48001122.java | 62 +++++++++++++++++++ ...s6e4c25da-58e8-11ee-b102-acde48001122.java | 28 +++++++++ ...s6e961604-58e8-11ee-b102-acde48001122.java | 23 +++++++ ...s6edd6ae0-58e8-11ee-b102-acde48001122.java | 15 +++++ 5 files changed, 152 insertions(+) create mode 100644 docs/spring/cs6dcd93dc-58e8-11ee-b102-acde48001122.java create mode 100644 docs/spring/cs6e0f25fe-58e8-11ee-b102-acde48001122.java create mode 100644 docs/spring/cs6e4c25da-58e8-11ee-b102-acde48001122.java create mode 100644 docs/spring/cs6e961604-58e8-11ee-b102-acde48001122.java create mode 100644 docs/spring/cs6edd6ae0-58e8-11ee-b102-acde48001122.java diff --git a/docs/spring/cs6dcd93dc-58e8-11ee-b102-acde48001122.java b/docs/spring/cs6dcd93dc-58e8-11ee-b102-acde48001122.java new file mode 100644 index 00000000..120e07cd --- /dev/null +++ b/docs/spring/cs6dcd93dc-58e8-11ee-b102-acde48001122.java @@ -0,0 +1,24 @@ +/** + * Copyright 2009-2015 the original author or authors. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ibatis.executor.loader; + +/** + * @author Eduardo Macarron + */ +@Deprecated +public final class JavassistProxyFactory extends org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory { + /* no-op */ +} diff --git a/docs/spring/cs6e0f25fe-58e8-11ee-b102-acde48001122.java b/docs/spring/cs6e0f25fe-58e8-11ee-b102-acde48001122.java new file mode 100644 index 00000000..0b48a0b2 --- /dev/null +++ b/docs/spring/cs6e0f25fe-58e8-11ee-b102-acde48001122.java @@ -0,0 +1,62 @@ +package com.huifer.dubbo.server.provider; + +/** + *

Title : Protocol$Adaptive

+ *

Description :

+ * + * @author huifer + * @date 2019-06-17 + */ + +import org.apache.dubbo.common.extension.ExtensionLoader; + +public class Protocol$Adaptive implements org.apache.dubbo.rpc.Protocol { + + public void destroy() { + throw new UnsupportedOperationException( + "The method public abstract void org.apache.dubbo.rpc.Protocol.destroy() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!"); + } + + public int getDefaultPort() { + throw new UnsupportedOperationException( + "The method public abstract int org.apache.dubbo.rpc.Protocol.getDefaultPort() of interface org.apache.dubbo.rpc.Protocol is not adaptive method!"); + } + + public org.apache.dubbo.rpc.Exporter export(org.apache.dubbo.rpc.Invoker arg0) + throws org.apache.dubbo.rpc.RpcException { + if (arg0 == null) { + throw new IllegalArgumentException("org.apache.dubbo.rpc.Invoker argument == null"); + } + if (arg0.getUrl() == null) { + throw new IllegalArgumentException( + "org.apache.dubbo.rpc.Invoker argument getUrl() == null"); + } + org.apache.dubbo.common.URL url = arg0.getUrl(); + String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol()); + if (extName == null) { + throw new IllegalStateException( + "Failed to get extension (org.apache.dubbo.rpc.Protocol) name from url (" + url + .toString() + ") use keys([protocol])"); + } + org.apache.dubbo.rpc.Protocol extension = ExtensionLoader + .getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); + return extension.export(arg0); + } + + public org.apache.dubbo.rpc.Invoker refer(java.lang.Class arg0, + org.apache.dubbo.common.URL arg1) throws org.apache.dubbo.rpc.RpcException { + if (arg1 == null) { + throw new IllegalArgumentException("url == null"); + } + org.apache.dubbo.common.URL url = arg1; + String extName = (url.getProtocol() == null ? "dubbo" : url.getProtocol()); + if (extName == null) { + throw new IllegalStateException( + "Failed to get extension (org.apache.dubbo.rpc.Protocol) name from url (" + url + .toString() + ") use keys([protocol])"); + } + org.apache.dubbo.rpc.Protocol extension = ExtensionLoader + .getExtensionLoader(org.apache.dubbo.rpc.Protocol.class).getExtension(extName); + return extension.refer(arg0, arg1); + } +} diff --git a/docs/spring/cs6e4c25da-58e8-11ee-b102-acde48001122.java b/docs/spring/cs6e4c25da-58e8-11ee-b102-acde48001122.java new file mode 100644 index 00000000..0853cf84 --- /dev/null +++ b/docs/spring/cs6e4c25da-58e8-11ee-b102-acde48001122.java @@ -0,0 +1,28 @@ +package org.huifer.rbac.service; + +import org.junit.jupiter.api.Test; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class DemoServiceTest { + + @Autowired + DemoService demoService; + + @Test + void test() { + demoService.lgs(); + } + + @Test + void testUpdate() { + demoService.update(); + } + + @Test + void testDelete() { + demoService.delete(); + } +} \ No newline at end of file diff --git a/docs/spring/cs6e961604-58e8-11ee-b102-acde48001122.java b/docs/spring/cs6e961604-58e8-11ee-b102-acde48001122.java new file mode 100644 index 00000000..a9020b9d --- /dev/null +++ b/docs/spring/cs6e961604-58e8-11ee-b102-acde48001122.java @@ -0,0 +1,23 @@ +/** + * Copyright 2009-2015 the original author or authors. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.ibatis.mapping; + +/** + * @author Clinton Begin + */ +public enum ResultFlag { + ID, CONSTRUCTOR +} diff --git a/docs/spring/cs6edd6ae0-58e8-11ee-b102-acde48001122.java b/docs/spring/cs6edd6ae0-58e8-11ee-b102-acde48001122.java new file mode 100644 index 00000000..a1bd5909 --- /dev/null +++ b/docs/spring/cs6edd6ae0-58e8-11ee-b102-acde48001122.java @@ -0,0 +1,15 @@ +package example.micronaut.ctr; + +import io.micronaut.http.MediaType; +import io.micronaut.http.annotation.Controller; +import io.micronaut.http.annotation.Get; +import io.micronaut.http.annotation.Produces; + +@Controller +public class HelloController { + @Get("/hello") + @Produces(MediaType.TEXT_PLAIN) + public String index() { + return "Hello World"; + } +}