maven

Karate Runner hangs at waiting for parallel features to complete

不打扰是莪最后的温柔 提交于 2021-01-19 02:37:52
问题 I am trying to execute some tests using Karate Runner - @KarateOptions(tags = {"~@ignore"}) //@KarateOptions(features = "examples/test.feature") public class KarateTestRunner { @BeforeClass public static void beforeClass() throws Exception { //TestBase.beforeClass(); } @Test public void testParallel() { Results results = Runner.parallel(getClass(), 5); generateReport(results.getReportDir()); assertTrue(results.getErrorMessages(), results.getFailCount() == 0); } } When I try to execute my

Karate Runner hangs at waiting for parallel features to complete

喜你入骨 提交于 2021-01-19 02:35:07
问题 I am trying to execute some tests using Karate Runner - @KarateOptions(tags = {"~@ignore"}) //@KarateOptions(features = "examples/test.feature") public class KarateTestRunner { @BeforeClass public static void beforeClass() throws Exception { //TestBase.beforeClass(); } @Test public void testParallel() { Results results = Runner.parallel(getClass(), 5); generateReport(results.getReportDir()); assertTrue(results.getErrorMessages(), results.getFailCount() == 0); } } When I try to execute my

IDEA Groovy test class already exists

人走茶凉 提交于 2021-01-18 13:53:39
问题 IDEA is giving my groovy class the warning `class "MyClassTest" already exists in "my.class.package". It also doesn't seem to be doing a very good job of keeping the class updated when I run the test. I'll add an assertion guaranteed to fail, or succeed and it won't recognize it until later (later so far seems arbitrary). Given that I have maven tests passing and running correctly I suspect this is simply an IDEA configuration problem here's my pom.xml <?xml version="1.0" encoding="UTF-8"?>

IDEA Groovy test class already exists

℡╲_俬逩灬. 提交于 2021-01-18 13:52:43
问题 IDEA is giving my groovy class the warning `class "MyClassTest" already exists in "my.class.package". It also doesn't seem to be doing a very good job of keeping the class updated when I run the test. I'll add an assertion guaranteed to fail, or succeed and it won't recognize it until later (later so far seems arbitrary). Given that I have maven tests passing and running correctly I suspect this is simply an IDEA configuration problem here's my pom.xml <?xml version="1.0" encoding="UTF-8"?>

IDEA Groovy test class already exists

谁说我不能喝 提交于 2021-01-18 13:51:51
问题 IDEA is giving my groovy class the warning `class "MyClassTest" already exists in "my.class.package". It also doesn't seem to be doing a very good job of keeping the class updated when I run the test. I'll add an assertion guaranteed to fail, or succeed and it won't recognize it until later (later so far seems arbitrary). Given that I have maven tests passing and running correctly I suspect this is simply an IDEA configuration problem here's my pom.xml <?xml version="1.0" encoding="UTF-8"?>

IDEA Groovy test class already exists

别等时光非礼了梦想. 提交于 2021-01-18 13:48:30
问题 IDEA is giving my groovy class the warning `class "MyClassTest" already exists in "my.class.package". It also doesn't seem to be doing a very good job of keeping the class updated when I run the test. I'll add an assertion guaranteed to fail, or succeed and it won't recognize it until later (later so far seems arbitrary). Given that I have maven tests passing and running correctly I suspect this is simply an IDEA configuration problem here's my pom.xml <?xml version="1.0" encoding="UTF-8"?>

厚着脸皮求领导写了一篇java小白进阶大牛之路!!!

做~自己de王妃 提交于 2021-01-17 18:42:32
缘起&应朋友之邀 2019年已经过去两个月了,应朋友之邀,写写自己的个人经历,与其说经历还不如是自我的总结与反思。2012年2月份只身一人拖着行李箱来到北京库巴科技有限公司实习,那时候库巴处在高速发展的阶段,我记得那一年库巴招了300多个应届毕业生,光技术就招了50多人,有运维、测试、开发、产品经理。那时候公司有宿舍,4个人一间,上下铺,条件虽然艰苦了一些,但认识了很多好朋友,至今还在保持着联系。下班之余大家经常一起吃饭喝酒,也就是那个时间胖了很多,回学校答辩的时候老师说:“你怎么胖成这样了,都有点快认不出来了”。 学校&java 在 学校 的时候对java很感兴趣,以至于上C语言课的时候,我在看java的学习视频,记得那时候看了很多牛人的视频,像魔乐科技的李兴华老师,尚学堂的马士兵老师,传智播客的张孝祥老师。 库巴&实习 在学校学的是struts、spring、Hibernate, 实习 的时候,公司用的是SSI,Ibatis没有用过,花了一周的时间学习框架,可能基础还算比较好,第二周领导就让我参与项目,这也是我人生中的第一个真实项目,虽然以前在学校也做过一些项目和参加过一些比赛,都是只限于单机版。公司的网站最早是用.net开发的,遇到高并发的时候经常宕机,我属于用户中心组,我们的任务是将注册登录部分用java进行重构,我负责登录功能的开发,在这个项目学到了很多东西

都为你整理好了,5种Java 随机方式对比!你都知道吗?

陌路散爱 提交于 2021-01-17 16:56:19
1. Math.random() 静态方法 产生的随机数是 0 - 1 之间的一个 double,即 0 <= random <= 1。 for (int i = 0; i < 10; i++) { System.out.println(Math.random()); } 结果: 0.3598613895606426 0.2666778145365811 0.25090731064243355 0.011064998061666276 0.600686228175639 0.9084006027629496 0.12700524654847833 0.6084605849069343 0.7290804782514261 0.9923831908303121 实现原理: When this method is first called, it creates a single new pseudorandom-number generator, exactly as if by the expression new java.util.Random() This new pseudorandom-number generator is used thereafter for all calls to this method and is used nowhere else.

保姆级 tomcat 快速入门

删除回忆录丶 提交于 2021-01-17 14:50:14
背景介绍 Apache Tomcat 是Java Servlet、JavaServer Pages (JSP)、Java表达式语言和Java的WebSocket技术的一个开源实现 ,通常我们将Tomcat称为Web容器或者Servlet容器 。 tomcat各版本和相应规范的映射关系: 下载地址 https://tomcat.apache.org/download-90.cgi 下载到本地并解压: 进入主目录: tomcat目录介绍 bin 启动,关闭和其他脚本。这些 .sh文件(对于Unix系统)是这些.bat文件的功能副本(对于Windows系统)。由于Win32命令行缺少某些功能,因此此处包含一些其他文件。 比如说:windows下启动tomcat用的是startup.bat,另外Linux环境中使用的是startup.sh。对应还有相应的shutdown关闭脚本。 conf tomcat的配置文件和相关的DTD。这里最重要的文件是server.xml。它是容器的主要配置文件。 catalina.policy :tomcat:安全策略文件,控制JVM相关权限,具体可以参考java.security.Permission。 catalina.properties :tomcat Catalina 行为控制配置文件,比如:Common ClassLoader。 logging

MyBatis【1.0入门案例】

泄露秘密 提交于 2021-01-16 12:57:39
MyBatis入门 1.添加MyBatis相关maven依赖 <dependencies> <!--mybatis相关依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.5</version> </dependency> <!--mysql数据库驱动--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.19</version> </dependency> </dependencies> 2.创建Mybatis核心配置文件 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <environments default="development"> <environment id="development">