Browse Source
* update english documents * refactor zk client * update documents * update zkclient * update zkclient * update documents * add architecture-design * change i18n * update i18n * update english documents * add architecture-design * update english documents * update en-US documents * add architecture-design * update demo site * add mybatis plus model * modify mybatisplus * modify mybatisplus * change interface by mybatisplus * add unit testpull/2/head
bao liang
5 years ago
committed by
lgcareer
28 changed files with 1088 additions and 16 deletions
@ -0,0 +1,11 @@
|
||||
package cn.escheduler.dao; |
||||
|
||||
import org.springframework.boot.SpringApplication; |
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||
|
||||
@SpringBootApplication |
||||
public class App { |
||||
public static void main(String[] args){ |
||||
SpringApplication.run(App.class); |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
package cn.escheduler.dao.config; |
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; |
||||
import org.mybatis.spring.annotation.MapperScan; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
|
||||
|
||||
@Configuration |
||||
@MapperScan("cn.escheduler.*.mapper") |
||||
public class MybatisPlusConfig { |
||||
@Bean |
||||
public PaginationInterceptor paginationInterceptor() { |
||||
return new PaginationInterceptor(); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,59 @@
|
||||
package cn.escheduler.dao.config; |
||||
|
||||
|
||||
|
||||
import org.yaml.snakeyaml.*; |
||||
|
||||
import java.io.InputStream; |
||||
import java.util.HashMap; |
||||
import java.util.Iterator; |
||||
import java.util.LinkedHashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* Created by qiaozhanwei on 2019/9/17. |
||||
*/ |
||||
public class YmlConfig { |
||||
|
||||
private static Map<String,String> allMap=new HashMap<String,String>(); |
||||
static { |
||||
Yaml yaml = new Yaml(); |
||||
InputStream inputStream = YmlConfig.class.getResourceAsStream("/application.yml"); |
||||
Iterator<Object> result = yaml.loadAll(inputStream).iterator(); |
||||
while(result.hasNext()){ |
||||
Map map=(Map)result.next(); |
||||
iteratorYml( map,null); |
||||
} |
||||
} |
||||
|
||||
public static void main(String[] args) { |
||||
String ss = allMap.get("spring.datasource.url"); |
||||
System.out.println(ss); |
||||
} |
||||
|
||||
public static void iteratorYml(Map map,String key){ |
||||
Iterator iterator = map.entrySet().iterator(); |
||||
while(iterator.hasNext()){ |
||||
Map.Entry entry = (Map.Entry) iterator.next(); |
||||
Object key2 = entry.getKey(); |
||||
Object value = entry.getValue(); |
||||
if(value instanceof LinkedHashMap){ |
||||
if(key==null){ |
||||
iteratorYml((Map)value,key2.toString()); |
||||
}else{ |
||||
iteratorYml((Map)value,key+"."+key2.toString()); |
||||
} |
||||
} |
||||
if(value instanceof String){ |
||||
if(key==null){ |
||||
allMap.put(key2.toString(), value.toString()); |
||||
} |
||||
if(key!=null){ |
||||
allMap.put(key+"."+key2.toString(), value.toString()); |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,28 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
import cn.escheduler.dao.entity.ResourcesUser; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
public interface ResourceUserMapper extends BaseMapper<ResourcesUser> { |
||||
|
||||
int deleteResourceUser(@Param("userId") int userId, |
||||
@Param("resourceId") int resourceId); |
||||
|
||||
} |
@ -0,0 +1,44 @@
|
||||
# mysql |
||||
spring: |
||||
datasource: |
||||
driver-class-name: org.postgresql.Driver |
||||
# driver-class-name: com.mysql.jdbc.Driver |
||||
url: jdbc:postgresql://192.168.220.154:5432/escheduler |
||||
# url: jdbc:mysql://192.168.220.188:3306/escheduler_new?useUnicode=true&characterEncoding=UTF-8 |
||||
username: root |
||||
password: root@123 |
||||
# platform: |
||||
continue-on-error: true |
||||
|
||||
|
||||
#mybatis |
||||
mybatis-plus: |
||||
mapper-locations: classpath*:/cn.escheduler.dao.mapper/*.xml |
||||
typeEnumsPackage: cn.escheduler.*.enums |
||||
#实体扫描,多个package用逗号或者分号分隔 |
||||
typeAliasesPackage: cn.escheduler.dao.entity |
||||
global-config: |
||||
#数据库相关配置 |
||||
db-config: |
||||
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID"; |
||||
id-type: AUTO |
||||
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断" |
||||
field-strategy: NOT_NULL |
||||
#驼峰下划线转换 |
||||
column-underline: true |
||||
logic-delete-value: -1 |
||||
logic-not-delete-value: 0 |
||||
banner: false |
||||
#原生配置 |
||||
configuration: |
||||
map-underscore-to-camel-case: true |
||||
cache-enabled: false |
||||
call-setters-on-nulls: true |
||||
jdbc-type-for-null: 'null' |
||||
|
||||
|
||||
# Logger Config |
||||
logging: |
||||
level: |
||||
cn.escheduler.dao: debug |
||||
|
@ -0,0 +1,91 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import cn.escheduler.dao.entity.DatasourceUser; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class DataSourceUserMapperTest { |
||||
|
||||
@Autowired |
||||
DataSourceUserMapper dataSourceUserMapper; |
||||
|
||||
|
||||
private DatasourceUser insertOne(){ |
||||
//insertOne
|
||||
DatasourceUser dataSourceUser = new DatasourceUser(); |
||||
dataSourceUser.setUserId(4); |
||||
dataSourceUser.setDatasourceId(1010); |
||||
dataSourceUser.setPerm(7); |
||||
dataSourceUser.setUpdateTime(new Date()); |
||||
dataSourceUser.setCreateTime(new Date()); |
||||
return dataSourceUser; |
||||
} |
||||
|
||||
@Test |
||||
public void testUpdate(){ |
||||
//insertOne
|
||||
DatasourceUser dataSourceUser = insertOne(); |
||||
//update
|
||||
dataSourceUser.setUpdateTime(new Date()); |
||||
int update = dataSourceUserMapper.updateById(dataSourceUser); |
||||
Assert.assertEquals(update, 1); |
||||
dataSourceUserMapper.deleteById(dataSourceUser.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testDelete(){ |
||||
|
||||
DatasourceUser dataSourceUser = insertOne(); |
||||
int delete = dataSourceUserMapper.deleteById(dataSourceUser.getId()); |
||||
Assert.assertEquals(delete, 1); |
||||
} |
||||
|
||||
@Test |
||||
public void testQuery() { |
||||
DatasourceUser dataSourceUser = insertOne(); |
||||
//query
|
||||
List<DatasourceUser> dataSources = dataSourceUserMapper.selectList(null); |
||||
Assert.assertNotEquals(dataSources.size(), 0); |
||||
dataSourceUserMapper.deleteById(dataSourceUser.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testDeleteByUserId() { |
||||
DatasourceUser dataSourceUser = insertOne(); |
||||
int delete = dataSourceUserMapper.deleteByUserId(dataSourceUser.getUserId()); |
||||
Assert.assertNotEquals(delete, 0); |
||||
} |
||||
|
||||
@Test |
||||
public void testDeleteByDatasourceId() { |
||||
DatasourceUser dataSourceUser = insertOne(); |
||||
int delete = dataSourceUserMapper.deleteByDatasourceId(dataSourceUser.getDatasourceId()); |
||||
Assert.assertNotEquals(delete, 0); |
||||
} |
||||
} |
@ -0,0 +1,113 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import cn.escheduler.common.enums.CommandType; |
||||
import cn.escheduler.dao.entity.CommandCount; |
||||
import cn.escheduler.dao.entity.ErrorCommand; |
||||
import cn.escheduler.dao.entity.ProcessDefinition; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ErrorCommandMapperTest { |
||||
|
||||
@Autowired |
||||
ErrorCommandMapper errorCommandMapper; |
||||
|
||||
@Autowired |
||||
ProcessDefinitionMapper processDefinitionMapper; |
||||
|
||||
|
||||
private ErrorCommand insertOne(){ |
||||
//insertOne
|
||||
ErrorCommand errorCommand = new ErrorCommand(); |
||||
errorCommand.setId(10101); |
||||
errorCommand.setCommandType(CommandType.START_PROCESS); |
||||
errorCommand.setUpdateTime(new Date()); |
||||
errorCommand.setStartTime(new Date()); |
||||
errorCommandMapper.insert(errorCommand); |
||||
return errorCommand; |
||||
} |
||||
|
||||
@Test |
||||
public void testUpdate(){ |
||||
//insertOne
|
||||
ErrorCommand errorCommand = insertOne(); |
||||
//update
|
||||
errorCommand.setUpdateTime(new Date()); |
||||
int update = errorCommandMapper.updateById(errorCommand); |
||||
Assert.assertEquals(update, 1); |
||||
errorCommandMapper.deleteById(errorCommand.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testDelete(){ |
||||
|
||||
ErrorCommand errorCommand = insertOne(); |
||||
int delete = errorCommandMapper.deleteById(errorCommand.getId()); |
||||
Assert.assertEquals(delete, 1); |
||||
} |
||||
|
||||
@Test |
||||
public void testQuery() { |
||||
errorCommandMapper.delete(null); |
||||
|
||||
ErrorCommand errorCommand = insertOne(); |
||||
|
||||
ProcessDefinition processDefinition = new ProcessDefinition(); |
||||
processDefinition.setName("def 1"); |
||||
processDefinition.setProjectId(1010); |
||||
processDefinition.setUserId(101); |
||||
processDefinition.setUpdateTime(new Date()); |
||||
processDefinition.setCreateTime(new Date()); |
||||
processDefinitionMapper.insert(processDefinition); |
||||
|
||||
errorCommand.setProcessDefinitionId(processDefinition.getId()); |
||||
errorCommandMapper.updateById(errorCommand); |
||||
|
||||
|
||||
List<CommandCount> commandCounts = errorCommandMapper.countCommandState( |
||||
null, |
||||
null, |
||||
new Integer[0] |
||||
); |
||||
|
||||
Integer[] projectIdArray = new Integer[2]; |
||||
projectIdArray[0] = processDefinition.getProjectId(); |
||||
projectIdArray[1] = 200; |
||||
List<CommandCount> commandCounts2 = errorCommandMapper.countCommandState( |
||||
null, |
||||
null, |
||||
projectIdArray |
||||
); |
||||
|
||||
errorCommandMapper.deleteById(errorCommand.getId()); |
||||
processDefinitionMapper.deleteById(processDefinition.getId()); |
||||
Assert.assertNotEquals(commandCounts.size(), 0); |
||||
Assert.assertNotEquals(commandCounts2.size(), 0); |
||||
} |
||||
} |
@ -0,0 +1,117 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import cn.escheduler.dao.entity.ProcessDefinition; |
||||
import cn.escheduler.dao.entity.ProcessInstanceMap; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ProcessInstanceMapMapperTest { |
||||
|
||||
|
||||
@Autowired |
||||
ProcessInstanceMapMapper processInstanceMapMapper; |
||||
|
||||
|
||||
private ProcessInstanceMap insertOne(){ |
||||
//insertOne
|
||||
ProcessInstanceMap processInstanceMap = new ProcessInstanceMap(); |
||||
processInstanceMap.setProcessInstanceId(0); |
||||
processInstanceMap.setParentTaskInstanceId(0); |
||||
processInstanceMap.setParentProcessInstanceId(0); |
||||
processInstanceMapMapper.insert(processInstanceMap); |
||||
return processInstanceMap; |
||||
} |
||||
|
||||
@Test |
||||
public void testUpdate(){ |
||||
//insertOne
|
||||
ProcessInstanceMap processInstanceMap = insertOne(); |
||||
//update
|
||||
processInstanceMap.setParentProcessInstanceId(1); |
||||
int update = processInstanceMapMapper.updateById(processInstanceMap); |
||||
Assert.assertEquals(update, 1); |
||||
processInstanceMapMapper.deleteById(processInstanceMap.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testDelete(){ |
||||
ProcessInstanceMap processInstanceMap = insertOne(); |
||||
int delete = processInstanceMapMapper.deleteById(processInstanceMap.getId()); |
||||
Assert.assertEquals(delete, 1); |
||||
} |
||||
|
||||
@Test |
||||
public void testQuery() { |
||||
ProcessInstanceMap processInstanceMap = insertOne(); |
||||
//query
|
||||
List<ProcessInstanceMap> dataSources = processInstanceMapMapper.selectList(null); |
||||
Assert.assertNotEquals(dataSources.size(), 0); |
||||
processInstanceMapMapper.deleteById(processInstanceMap.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByParentId() { |
||||
ProcessInstanceMap processInstanceMap = insertOne(); |
||||
|
||||
processInstanceMap.setParentProcessInstanceId(100); |
||||
processInstanceMapMapper.updateById(processInstanceMap); |
||||
ProcessInstanceMap map = |
||||
processInstanceMapMapper.queryByParentId(processInstanceMap.getParentProcessInstanceId(), processInstanceMap.getParentTaskInstanceId()); |
||||
Assert.assertNotEquals(map, null); |
||||
|
||||
|
||||
processInstanceMapMapper.deleteById(processInstanceMap.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryBySubProcessId() { |
||||
ProcessInstanceMap processInstanceMap = insertOne(); |
||||
|
||||
processInstanceMap.setProcessInstanceId(100); |
||||
processInstanceMapMapper.updateById(processInstanceMap); |
||||
ProcessInstanceMap map = |
||||
processInstanceMapMapper.queryBySubProcessId( |
||||
processInstanceMap.getProcessInstanceId() ); |
||||
Assert.assertNotEquals(map, null); |
||||
|
||||
processInstanceMapMapper.deleteById(processInstanceMap.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testDeleteByParentProcessId() { |
||||
ProcessInstanceMap processInstanceMap = insertOne(); |
||||
|
||||
processInstanceMap.setParentProcessInstanceId(100); |
||||
processInstanceMapMapper.updateById(processInstanceMap); |
||||
int delete = processInstanceMapMapper.deleteByParentProcessId( |
||||
processInstanceMap.getParentProcessInstanceId() |
||||
); |
||||
Assert.assertEquals(delete, 1); |
||||
} |
||||
} |
@ -0,0 +1,124 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import cn.escheduler.dao.entity.ProcessInstance; |
||||
import cn.escheduler.dao.entity.ProcessInstanceMap; |
||||
import org.junit.Assert; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
import java.util.List; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ProcessInstanceMapperTest { |
||||
|
||||
|
||||
@Autowired |
||||
ProcessInstanceMapper processInstanceMapper; |
||||
|
||||
|
||||
private ProcessInstance insertOne(){ |
||||
//insertOne
|
||||
ProcessInstance processInstanceMap = new ProcessInstance(); |
||||
processInstanceMapper.insert(processInstanceMap); |
||||
return processInstanceMap; |
||||
} |
||||
|
||||
@Test |
||||
public void testUpdate(){ |
||||
//insertOne
|
||||
ProcessInstance processInstanceMap = insertOne(); |
||||
//update
|
||||
int update = processInstanceMapper.updateById(processInstanceMap); |
||||
Assert.assertEquals(update, 1); |
||||
processInstanceMapper.deleteById(processInstanceMap.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testDelete(){ |
||||
ProcessInstance processInstanceMap = insertOne(); |
||||
int delete = processInstanceMapper.deleteById(processInstanceMap.getId()); |
||||
Assert.assertEquals(delete, 1); |
||||
} |
||||
|
||||
@Test |
||||
public void testQuery() { |
||||
ProcessInstance processInstanceMap = insertOne(); |
||||
//query
|
||||
List<ProcessInstance> dataSources = processInstanceMapper.selectList(null); |
||||
Assert.assertNotEquals(dataSources.size(), 0); |
||||
processInstanceMapper.deleteById(processInstanceMap.getId()); |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryDetailById() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByHostAndStatus() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryProcessInstanceListPaging() { |
||||
} |
||||
|
||||
@Test |
||||
public void testSetFailoverByHostAndStateArray() { |
||||
} |
||||
|
||||
@Test |
||||
public void testUpdateProcessInstanceByState() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByTaskId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testCountInstanceStateByUser() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQuerySubIdListByParentId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByProcessDefineId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByScheduleTime() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryLastSchedulerProcess() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryLastRunningProcess() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryLastManualProcess() { |
||||
} |
||||
} |
@ -0,0 +1,56 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ProjectMapperTest { |
||||
|
||||
@Test |
||||
public void testQueryDetailById() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryProjectByName() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryProjectListPaging() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryAllProjectListPaging() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryProjectCreatedByUser() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryAuthedProjectListByUserId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryProjectExceptUserId() { |
||||
} |
||||
} |
@ -0,0 +1,36 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ProjectUserMapperTest { |
||||
|
||||
@Test |
||||
public void testDeleteProjectRelation() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryProjectRelation() { |
||||
} |
||||
} |
@ -0,0 +1,40 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class QueueMapperTest { |
||||
|
||||
@Test |
||||
public void testQueryQueuePaging() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByQueue() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByQueueName() { |
||||
} |
||||
} |
@ -0,0 +1,52 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ResourceMapperTest { |
||||
|
||||
@Test |
||||
public void testQueryResourceList() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryResourcePaging() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryResourceListAuthored() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryAuthorizedResourceList() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryResourceExceptUserId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryTenantCodeByResourceName() { |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ResourceUserMapperTest { |
||||
|
||||
@Test |
||||
public void testDeleteResourceUser() { |
||||
} |
||||
} |
@ -0,0 +1,44 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class ScheduleMapperTest { |
||||
|
||||
@Test |
||||
public void testQueryByProcessDefineIdPaging() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQuerySchedulerListByProjectName() { |
||||
} |
||||
|
||||
@Test |
||||
public void testSelectAllByProcessDefineArray() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByProcessDefinitionId() { |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class SessionMapperTest { |
||||
|
||||
@Test |
||||
public void testQueryByUserId() { |
||||
} |
||||
} |
@ -0,0 +1,64 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class TaskInstanceMapperTest { |
||||
|
||||
@Test |
||||
public void testQueryTaskByProcessIdAndState() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryById() { |
||||
} |
||||
|
||||
@Test |
||||
public void testFindValidTaskListByProcessId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByHostAndStatus() { |
||||
} |
||||
|
||||
@Test |
||||
public void testSetFailoverByHostAndStateArray() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryByInstanceIdAndName() { |
||||
} |
||||
|
||||
@Test |
||||
public void testCountTask() { |
||||
} |
||||
|
||||
@Test |
||||
public void testCountTaskInstanceStateByUser() { |
||||
} |
||||
|
||||
@Test |
||||
public void testQueryTaskInstanceListPaging() { |
||||
} |
||||
} |
@ -0,0 +1,36 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You 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 cn.escheduler.dao.mapper; |
||||
|
||||
|
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
@RunWith(SpringRunner.class) |
||||
@SpringBootTest |
||||
public class UDFUserMapperTest { |
||||
|
||||
@Test |
||||
public void testDeleteByUserId() { |
||||
} |
||||
|
||||
@Test |
||||
public void testDeleteByUdfFuncId() { |
||||
} |
||||
} |
Loading…
Reference in new issue