2015 年文章归档
共 39 篇文章
基础 http://www.infoq.com/cn/articles/java-interrupt-mechanism http://hapinwater.iteye.com/blog/310558 新完应儿: lockInterruptibly -> 实现了可以被中断的线程阻塞(对比synchronized(this),这种阻塞无法被中断) http://lzmhehe.iteye.com/blog/402053
2015-09-17 16:13 · Multi-thread
http://www.softwaretestinghelp.com/selenium-grid-selenium-tutorial-29/ We are now close to the end of this comprehensive Selenium tutorials series . Next week, we will conclude this online Selenium Training series with “effort estimation of Selenium Projects” and “Selenium Interview questions and a…
2015-09-16 08:04 · Testing
http://www.softwaretestinghelp.com/selenium-interview-questions-answers/ In this tutorial, we have listed the 50 most popularly asked Selenium interview questions including Selenium WebDriver interview questions. A quick note about this Selenium article series before we move to this last tutorial: …
2015-09-16 08:01 · Testing
http://www.softwaretestinghelp.com/database-testing-using-selenium-webdriver-selenium-tutorial-28/ In our last Selenium tutorial we learned how to troubleshoot some recurrent problems in selenium scripts . We discussed some advance concepts wherein we would deal with mouse and keyboard events, acce…
2015-09-16 08:00 · Testing
http://www.softwaretestinghelp.com/efficient-selenium-scripting-selenium-tutorial-27/ In the previous tutorial, we discussed the technical implications while implementing logging in a framework . We discussed log4j utility at length. We discussed the basic components those constitute log4j from a u…
2015-09-16 08:00 · Testing
http://tutorials.jenkov.com/java-util-concurrent/index.html 1 java.util.concurrent - Java Concurrency Utilities 2 BlockingQueue 3 ArrayBlockingQueue 4 DelayQueue 5 LinkedBlockingQueue 6 PriorityBlockingQueue 7 SynchronousQueue 8 BlockingDeque 9 LinkedBlockingDeque 10 ConcurrentMap 11 ConcurrentNavi…
2015-09-16 08:00 · Multi-thread
http://blog.csdn.net/dm_vincent/article/details/40503685 利用Stream类型的“懒”操作 代码中的很多操作都是Eager的,比如在发生方法调用的时候,参数会立即被求值。总体而言,使用Eager方式让编码本身更加简单,然而使用Lazy的方式通常而言,即意味着更好的效率。 本篇文章就是为了展示Java 8中新特性是如何让我们能够更方便的写出Lazy方式代码。 延迟初始化 对于会消耗较多资源的对象,使用延迟初始化是比较好的选择。这不仅能够节省一些资源,同时也能够加快对象的创建速度,从而从整体上提升性能。 但是对一个对象实现延迟初始化时,需要…
2015-07-22 07:49 · Java
http://zh.lucida.me/blog/java-8-lambdas-insideout-library-features/ English version http://www.drdobbs.com/jvm/lambdas-and-streams-in-java-8-libraries/240166818?pgno=1 于 深入理解Java 8 Lambda(语言篇——lambda,方法引用,目标类型和默认方法) 深入理解Java 8 Lambda(类库篇——Streams API,Collector和并行) 深入理解Java 8 Lambda(原理篇——Java编译器如何处理…
2015-07-22 07:00 · Java
http://zh.lucida.me/blog/java-8-lambdas-insideout-language-features/ 关于 深入理解Java 8 Lambda(语言篇——lambda,方法引用,目标类型和默认方法) 深入理解Java 8 Lambda(类库篇——Streams API,Collector和并行) 深入理解Java 8 Lambda(原理篇——Java编译器如何处理lambda) 本文是深入理解Java 8 Lambda系列的第一篇,主要介绍Java 8新增的语言特性(比如lambda和方法引用),语言概念(比如目标类型和变量捕获)以及设计思路。 本文是对 …
2015-07-22 06:58 · Java
http://colobu.com/2014/11/18/Java-8-Stream/ 在现代的Java应用程序中很少不用到集合类和数组。 可以对集合进行增,删,改,插, 统计(聚合aggregate)。 这些操作的概念在SQL操作上也会用到。 但是对集合的操作却没有像SQL那样方便简捷。 为什么我们不能实现一种类似SQL语句一样方便的编程方式呢, 去取代一遍又一遍loop遍历的方式处理集合和数组中的数据? 另外,对于大数据量的集合, 能不能充分利用多核的优势, 并行的处理? Stream是就是这种处理数据的风格, 一种流式风格。 这种风格在其它语言中也有实现, 比如Javascript (…
2015-07-22 06:31 · Java
为什么Arrays.asList() 返回的list是 immutable的? 原因是:返回的list本质上是Arrays类的一个内部类,这个类没有change structure的方法(add remove等方法全都改写成直接抛出unsupported operation异常),所以他是immutable的。 源代码分析: 将一个数组转化为一个List对象,一般会想到Arrays.asList()方法,这个方法会返回一个ArrayList类型的对象。但是用这个对象对列表进行添加删除更新操作,就会报UnsupportedOperationException异常。 [java] view pl…
2015-07-21 23:05 · Java
http://www.softwaretestinghelp.com/log4j-tutorial-selenium-tutorial-26/ Now we are moving towards the end of our most comprehensive Free Tutorials for Selenium Testing tool . The tutorials we are posting now are the part of advance Selenium training. In the previous tutorial, we kept our focus on t…
2015-07-21 22:44 · Testing
http://www.softwaretestinghelp.com/apache-ant-selenium-tutorial-23/ In the last tutorial, we tried to make you acquainted with the concept of generics and common methods . We also discussed the benefits we get out of generics like reusability. We also shared the practical approaches towards creatio…
2015-07-21 22:43 · Testing
http://www.softwaretestinghelp.com/hudson-continuous-integration-tool-selenium-tutorial-25/ In the last two tutorials, we discussed about the two most important build tools – ANT and Maven . We discussed about their significance and practical importance. In the current Selenium online training tuto…
2015-07-21 22:42 · Testing
http://www.softwaretestinghelp.com/maven-project-setup-for-selenium-selenium-tutorial-24/ In our last Selenium tutorial we learned a build tool named as “Apache Ant” . We also broadly discussed its applicability and importance besides the practical approach. In this Selenium Testing tutorial we wil…
2015-07-16 08:16 · Testing
The single most important change in Java 8 enables faster, clearer coding and opens the door to functional programming. Here's how it works. Java was designed in the 1990s as an object-oriented programming language, when object-oriented programming was the principal paradigm for software developmen…
2015-07-14 13:09 · Java
http://www.softwaretestinghelp.com/selenium-framework-design-selenium-tutorial-21/ In the last tutorial, we familiarized you with the basics of test automation Frameworks , its components and types. The frameworks illustrated in the previous tutorial were a few amongst the most popular frameworks u…
2015-07-10 01:45 · Testing
http://www.javacodegeeks.com/2014/05/java-8-features-tutorial.html Java 8 Features Tutorial – The ULTIMATE Guide (PDF Download) Posted by: Andrey Redko in Core Java May 9th, 2014 EDITORIAL NOTE: It’s been a while since Java 8 is out in the public and everything points to the fact that this is a rea…
2015-07-08 02:06 · Java
http://www.softwaretestinghelp.com/test-automation-frameworks-selenium-tutorial-20/ In the last few Selenium tutorials, we discussed about various commonly and popularly used commands in WebDriver , handling web elements like Web Tables, Frames and handling exceptions in Selenium scripts. We discus…
2015-07-08 02:02 · Testing
http://www.softwaretestinghelp.com/exception-handling-framework-selenium-tutorial-19/ In last WebDriver tutorial we learned about 3 different types of important web elements like Web Tables, Frames and Dynamic elements and their handling mechanisms in selenium script Before moving ahead with Framew…
2015-07-08 02:01 · Testing