The best way to develop Apache camel applications is TDD, because each component of camel is independent and testable.There are a lot of good test frameworks now, and the BDD (behavioral test Drive) with groovy Spock framework is relatively good and useful.First, we start with the simplest processor.Write Test Cases First:Package Com.github.eric.camelImport Org.apache.camel.ExchangeImport Org.apache.camel.i
Mini-project Description-rock-paper-scissors-lizard-spockRock-paper-scissors is a hand game this is played by the people. The players count to three in unison and simultaneously "throw" one of the three hand signals this correspond to rock, paper O R Scissors. The winner is determined by the rules:
Rock smashes scissors
Scissors cuts paper
Paper covers Rock
Rock-paper-scissors is a surprisingly popular game this many people play seriously (see the Wikipedia article for deta
In the previous it used the Gmaven plugin compiled groovy/spock, this time using the Gmavenplus plugin, more convenient.Specific steps1. Import Spock and Groovy dependenciesDependency> groupId>Org.codehaus.groovygroupId> Artifactid>Groovy-allArtifactid> version>2.4.1version> Scope>TestScope> Dependency> Dependency> groupId>Org.spockframewo
I heard that Spock is a reinforced version of JUnit, today specifically installed, and then the process to share with you. First of all, my Java project is managed with Maven. The eclipse I used was kelper, Kepler.Before you use Spock, you first need to match the groovy environment. Search the Internet, found the groovy Eclipse plugin: http://dist.springsource.org/snapshot/GRECLIPSE/e4.3/index.html Just thi
Lisp is a simple and powerful language with a very simple syntax:(+ 1 2)The above meaning is: + is a method or function, 1, 2 is a parameter, fn=1+2, that is, the sum is evaluated, the result is: 3Double brackets are used to remind the interpreter to start and end.Previously wrote an article in Iteye to briefly explain how to write Lisp's interpreter:http://gyc567.iteye.com/blog/2242960It also draws a sketch to illustrate:Because Lexer ( lexical analyzer ) is the main job is to convert the progr
Spock Proxy is an open source project generated by the actual project (Spock is the application of rails, Speck proxy should be available for use outside of rails, such as PHP or. NET), based on MySQL proxy development, is a branch of MySQL proxy, With support for range-based horizontal paritioning, his improvements to MySQL proxy include:
a). Do not use LUA scripts to improve performance. For example, the
Document directory
1. Fan out of the framework
2. Integration of auxiliary modules of hybrid frameworks
3. Separation of projects and configurations of hybrid frameworks
4. Introduction to calling hybrid frameworks
5. Support for mixed framework code generation tools
6. Summary of mixed framework Optimization
I introduced the variants and hybrid framewo
Document directory
3. Implementation of a hybrid framework
4. Composition of project files
In my previous article "evolution of the Winform Development Framework framework", I introduced the traditional Winform development framework, the traditional WCF development framework
Article Source: http://blog.csdn.net/cjyy1973/archive/2006/02/01/590553.aspxA framework is a semi-finished product of an application. The framework provides a public structure that can be shared between applications. Developers integrate frameworks into their own applications and expand them to meet their specific needs. The difference between a framework and a t
What is the framework and why it should be used. what does the framework solve. I just learned it. place a simple select result on the webpage. simply write the php code. what is the framework used. the entire framework has a lot of code and does not understand it. the ghost knows what happened. it also takes a lot of
Entity Framework object Framework formation journey-Entity Framework based on generic warehousing model (1), entityframework
I haven't written a blog for a long time, and some readers often ask some questions. However, I have been very busy recently. Besides my daily work, it usually takes time to continue studying Microsoft's EntityFramework. This entity
is an Android Program Automation testing tools. Test code: @RunWith (robolectrictestrunner.class) public Class Myactivitytest { @Test public void Clickingbutton_shouldchangeresultsviewtext () throws Exception {activity activity = ... More ROBOLECTIRC information
NoSQL Unit Test Tool NosqlunitNosqlunit is a JUnit extension that provides tools for unit testing and integration testing for applications that use a NoSQL backend. Use example:@UsingDataSet(locations= "My_data_
First, the series of briefIn this article, we will use a series of articles to describe how to build an application development framework, and take the framework of the author's development as an example, one by one, to expand the analysis, how to start from scratch, to build their own development framework.The purpose of this series of articles is to lead a person with a programming experience, through han
The formation of Entity Framework object Framework-Summary of several experiences in Entity Framework Development, entityframework
Some time ago, I made some research on the Entity Framework, and then developed a series of learning processes to explain the relevant technologies of the Entity
Build your own PHP Framework-abstract framework content, php Framework-abstract. Build your own PHP Framework-abstract framework content, php Framework-abstract in the previous blog, we set up the simplest
Build your own PHP framework-the content of the abstract framework, the PHP framework-abstract
In the previous blog, we set up the simplest framework to enter from the public/index.php of a single entry, parse out the corresponding controller and action, execute, render the corresponding page or output the correspondi
Php framework: Does php development need a framework ?, Php framework
Originally, it was good. As a result, no matter the software CMS or various frameworks, they all created their own rules! The key is not universal yet! I learned the syntax and semantics of PHP for half a year. I learned a framework and another half
What is a JavaScript framework? How can it be called a framework ?, Javascript framework
When I first started JavaScript, I always heard about the framework. After learning JQ, I will know what the framework is. Here is a reprinted article, hoping to help confused kids shoes
are pros and cons, when we "inward-looking", we will lose something, that is, communication, without the exchange of our progress will appear very difficult. Since 10, I began to study the architecture of the Tianlong server, at that time, although there is no source code, the service side/client can see only Lua, and later these are added to the secret. After a few years, including the Dragon's Swim, Kirin, Jinshan, some of the architectural design, the most I appreciate is the gold Shanxi Mou
Install and use the Yaf framework of the PHP extension framework, and extend the yaf framework with php. Install and use the Yaf framework of the PHP extension framework, and install the windows extension in the php extension yaf framewo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.