/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
*
* @author austvik
*/
public class GitHistoryParserTest {
public GitHistoryParserTest() {
}
repository = new TestRepository();
}
}
public void setUp() {
instance = new GitHistoryParser();
}
public void tearDown() {
}
/**
* Test of parse method, of class GitHistoryParser.
*/
@Test
}
/**
* Parse something that could come out from the Memcached repository
*
* @throws java.lang.Exception
*/
@Test
"\n" +
" patch from somebody <user.name@example.com>:\n" +
" \n" +
" commit message.\n" +
" \n" +
" \n" +
"\n" +
"\n" +
" r123@branch: username | some date\n" +
" some comment\n" +
" \n" +
" \n" +
"\n" +
"\n" +
" some comment\n" +
" \n" +
}
/**
* Parse something that could come out from the git repository
*
* @throws java.lang.Exception
*/
@Test
"\n" +
" Some heading\n" +
" \n" +
" First paragraph of text.\n" +
" \n" +
" Second paragraph\n" +
" of text.\n" +
" \n" +
" Signed-off-by: Somebody <username@example.com>\n" +
"\n" +
filename + "\n" +
"\n" +
"\n" +
" Make \"--somethind\" do something.\n" +
" \n" +
" This is a full\n" +
" paragraph of text\n" +
" \n" +
" Signed-off-by: Somebody <username@example.com>\n" +
"\n" +
filename + "\n";
}
/**
* Parse something that could come out from the linux kernel repository
*
* @throws java.lang.Exception
*/
@Test
"\n" +
" Subject: subject title\n" +
" \n" +
" sdj fasodjfads jfa.kdsmf asdknf sadlfkm sad fma\n" +
" dpojfv adsjv a,s.kdnvlø aok åpwaiorjf aldjfg ladijfg adkgf\n" +
" jsdkgfj sadhkjfgs dlkjfg dksjgfh.\n" +
" \n" +
" djkhfgv ksadhg kdajhg ,dsn \n" +
" x,nv ,xmcnvkadsjfnv,. zxmcnv edfhsgdksgf.\n" +
" Dsdn ,dn ,dsng .,xcmnvefjhgiorfhgdskhg fdsg dfh sdf\n" +
" skdjfas djskdjf ksadjhfn sa.,df .\n" +
" \n" +
" Zkjd flsdj flksadj fødsakjf asd jfsadijfosdhva.\n" +
" \n" +
" [user@example.com: something or another]\n" +
" Signed-off-by: First Last <username@example.com>\n" +
" Cc: Firstr Last <username@example.com>\n" +
" Signed-off-by: First Last <username3@example.com>\n" +
" Signed-off-by: Pinguin <pingu@example.com>\n" +
"\n" +
filename1 + "\n" +
"\n" +
"\n" +
" [PATCH] Subject heading.\n" +
" \n" +
" Some description of what is to come:\n" +
" \n" +
" * item 1\n" +
" * item 2\n" +
" * ...\n" +
" * item n\n" +
" \n" +
" Signed-off-by: User <user@example.com>\n" +
" Cc: \"First.Last\" <user2@example.com>\n" +
" Signed-off-by: First Last <username3@example.com>\n" +
" Signed-off-by: Pinguin <pingu@example.com>\n" +
"\n" +
filename1 + "\n" +
filename2 + "\n";
}
}