private Test copyTest(Test test, boolean full) {
		Test newTest = new Test();
		
		newTest.setDuration(test.getDuration());
		newTest.setKey(test.getKey());
		newTest.setPassed(test.isPassed());
		newTest.setMessage(test.getMessage());

		if (full) {
			newTest.setFlags(test.getFlags());
			newTest.setCategory(test.getCategory());
			newTest.setName(test.getName());
			newTest.addTags(test.getTags());
			newTest.addTickets(test.getTickets());
			newTest.addData(test.getData());
		}
		
		return newTest;
	}
private Test copyTest ( Test test , boolean full ) { Test newTest = new Test ( ) ; newTest . setDuration ( test . getDuration ( ) ) ; newTest . setKey ( test . getKey ( ) ) ; newTest . setPassed ( test . isPassed ( ) ) ; newTest . setMessage ( test . getMessage ( ) ) ; if ( full ) { newTest . setFlags ( test . getFlags ( ) ) ; newTest . setCategory ( test . getCategory ( ) ) ; newTest . setName ( test . getName ( ) ) ; newTest . addTags ( test . getTags ( ) ) ; newTest . addTickets ( test . getTickets ( ) ) ; newTest . addData ( test . getData ( ) ) ; } return newTest ; }
Copy a test

@param test Test to copy
@param full Define if full attributes should be copied or not
@return The test copied