上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 2019-09-30 Effective Java 1 创建和销毁对象 1.用静态工厂方法代替构造器 2.遇到多个构造参数时使用构造器重构 3.用私有构造器或枚举类型强化SingleTon属性 4.通过私有构造器强化不可实例化的能力 5.优先考虑依赖注入来引用资源 6.避免创建不必要的对象 7.消除 阅读全文
posted @ 2019-09-30 08:33 君子之行 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 19:44:48 1. 使用 Builder 简化 Composite 模式 1 package com.srdc.tech.service.webConstructure; 2 3 4 5 import com.srdc.tech.service.seleniumAction.Execution. 阅读全文
posted @ 2019-09-22 19:48 君子之行 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Dom4j 其内置了 Visitor 接口, VisitorSupport 是其实现类,有多个重载 visit 方法. Document.getRootElement().accept(myVisitorImpl) 注意,会自动遍历所有节点。 https://dom4j.github.io/java 阅读全文
posted @ 2019-09-18 15:06 君子之行 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 14:55:27 key map 1. Refactoring shift + F6 : 重命名 选中, F6 : move to Ctrl+w 选中某个单词 Shift + F9 : debug Shift + F10 : run 2. Test Ctrl + Shift + T : 跳转到 Te 阅读全文
posted @ 2019-09-13 14:56 君子之行 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 09:47:12 sublime 默认不显示文件编码格式。 打开操作如下 1.菜单 Perference -> settings -> user 在 user 添加 阅读全文
posted @ 2019-09-12 09:51 君子之行 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-09-10 19:03 君子之行 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 19:00:08 1 递归删除 FilsWalkTree , FileVisitorResult walkFileTree 方法需要 FileVisitor 接口的实例, file visitor 会得到通知的时机 1. 目录处理之前 FileVisitorResult preVisitDirect 阅读全文
posted @ 2019-09-08 19:24 君子之行 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 10:52:37 Table 获取 tr list 注意会无法正常遍历获取。 修正后正常 1 public SelectionCriteriaPage checkSpecifyTag(int count){ 2 String gridXpath = "//div[@id='NewSelectionP 阅读全文
posted @ 2019-09-03 10:54 君子之行 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 19:50:31 《UML 模式和应用》 P322 系统需要支持多种第三方外部服务,例如费用计算,授权服务,库存系统,都具有不同的API, 而且还无法改变。 解决方案之一: 使用 单例模式的工厂对象,适配提供服务 1 ) Adapter 增加一层间接性对象,通过这些对象将不同的外部接口调整为在应用程 阅读全文
posted @ 2019-09-01 21:23 君子之行 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 17:57:19 Junit Rule 1. global timeout @Rulepublic MethodRule globalTimeOut = new Timeout(20) 2. ExpectedException@Rulepublic ExceptedException 3.Tempo 阅读全文
posted @ 2019-08-31 17:59 君子之行 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页