Skip to content

Commit

Permalink
write a line into test.file
Browse files Browse the repository at this point in the history
  • Loading branch information
huifer committed Sep 22, 2023
1 parent a6ab203 commit 8888185
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/spring/cs6dcd93dc-58e8-11ee-b102-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* Copyright 2009-2015 the original author or authors.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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 */
}
62 changes: 62 additions & 0 deletions docs/spring/cs6e0f25fe-58e8-11ee-b102-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package com.huifer.dubbo.server.provider;

/**
* <p>Title : Protocol$Adaptive </p>
* <p>Description : </p>
*
* @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);
}
}
28 changes: 28 additions & 0 deletions docs/spring/cs6e4c25da-58e8-11ee-b102-acde48001122.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
23 changes: 23 additions & 0 deletions docs/spring/cs6e961604-58e8-11ee-b102-acde48001122.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright 2009-2015 the original author or authors.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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
}
15 changes: 15 additions & 0 deletions docs/spring/cs6edd6ae0-58e8-11ee-b102-acde48001122.java
Original file line number Diff line number Diff line change
@@ -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";
}
}

0 comments on commit 8888185

Please sign in to comment.