Slashdot Mirror


Why We Refactored JUnit

Bill Venners writes "In this article, three programmers tell the story of how their frustration with JUnit's API led to the creation of Artima SuiteRunner, a free, open source test toolkit and JUnit runner. These programmers simply wanted to create a small add-on tool to JUnit, but found JUnit's design non-intuitive and API documention poor. After spending time reading through JUnit's source code and attempting to guess at the API contracts, they gave up and rewrote it."

16 of 192 comments (clear)

  1. If only... by Dougthebug · · Score: 0, Offtopic

    "After spending time reading through JUnit's source code and attempting to guess at the API contracts, they gave up and rewrote it."

    Now if someone would just do that for Windows we'd be in business...

  2. And meanwhile, In Soviet Russia... by -1bynextweek · · Score: -1, Offtopic

    non-trollable stories dislike YOU!!!

    1. Re:And meanwhile, In Soviet Russia... by Anonymous Coward · · Score: -1, Offtopic

      disliked stories troll YOU!!!

  3. ftp://ftp.kde.org/pub/kde/stable/3.1/src/ by Anonymous Coward · · Score: -1, Offtopic

    Leech now

    ftp://ftp.kde.org/pub/kde/stable/3.1/src/

    3.1 is there, man

  4. Great - now rewrite Ant by Anonymous Coward · · Score: -1, Offtopic

    Ant's a friggin' hodge-podge of crap and random XML APIs.

  5. Re:In Soviet Russia... by Anonymous Coward · · Score: -1, Offtopic

    Man, you just can't get to terrible karma. I think you missed your next week limit. Tough luck.

  6. Isn't it obvious? by arcadum · · Score: -1, Offtopic

    YOU HAVE BEEN TROLLED.

    1. Re:Isn't it obvious? by obsidian+head · · Score: 0, Offtopic

      Funny how the insightful comment was moderated down.

  7. more off-topic anti-americanism. w00t. by Anonymous Coward · · Score: -1, Offtopic

    Question 1) Which country was the primary "sponsor" - in terms of weapons, training and funding - of Osama Bin Laden and his fighters during the 1980s?

    Q2) Which country's spokesman saw "nothing objectionable" in the Taliban's seizure of power in Afghanistan in 1996?

    Q3) Which country unilaterally withdrew from the Anti-Ballistic Missile (ABM) Treaty in December 2001?

    Q4) Which country renounced the efforts to negotiate a verification process for the Biological Weapons Convention and brought an international conference on the matter to a halt in July 2001?

    Q5) Which country unilaterally withdrew from the Kyoto treaty on global warming in March 2001?

    Q6) Which country is the world's biggest polluter?

    Q7) Which country prevented the United Nations from curbing the gun trade at a small arms conference in July 2001?

    Q8) Which country is the world's largest exporter of arms?

    Q9) Which country was responsible for a car bomb which killed 80 civilians in Beirut in 1985, in a botched assassination attempt, thereby making it the most lethal terrorist bombing in modern Middle East history?

    Q10) Which country's illegal bombing of Libya in 1986 was described by the UN Legal Committee as a "classic case" of terrorism?

    Q11) Aside from Somalia, which is the only other country in the world to have refused to ratify the UN Convention on the Rights of the Child?

    Q12) Which is the only country in the West which still permits the execution of children (i.e. "persons under the age of 18")?

    Q13) Which is the only G7 country to have refused to sign the 1997 Mine Ban Treaty, forbidding the use of landmines?

    Q14) Aside from China, which is the only other nuclear power to have refused to ratify the Comprehensive Test Ban Treaty (CTBT)?

    Q15) Which country rejected the order of the International Court of Justice (ICJ) to terminate its "unlawful use of force" against Nicaragua in 1986, and then vetoed a UN Security Council resolution calling on all states to observe international law?

    Q16) Which is the only G7 country to have voted against the creation of the International Criminal Court (ICC) in 1998?

    Q17) Which country refuses to hand over a variety of indicted war criminals, terrorists and mass murderers - all residing within its borders - to Cuba, Venezuela and Haiti?

    Q18) Which country has provided approximately $100 billion in aid to a country [Israel] which has maintained a 34-year occupation of land in defiance of international law?

    Q19) Which was the only other country to join with Israel in opposing a 1987 General Assembly resolution condemning international terrorism?

    Q20) Which country refuses to fully pay its debts to the United Nations yet reserves its right to veto United Nations resolutions?

    Q21) Which country only ratified the Convention on the Prevention of Genocide in 1988, forty years after its passage at the United Nations?

    Q22) Which country was accused by a UN-sponsored truth commission of providing "direct and indirect support" for "acts of genocide" against the Mayan Indians in Guatemala during the 1980s?

    Q23) Which country is the driving force behind the current economic embargo on Iraq - responsible for the death of over half a million Iraqi children and described by one of its own legislators as "genocide masquerading as policy"?

    Q24) Which is the only country in the world to have dropped bombs on twenty other countries since 1945?

    Q25) Which is the only country in the world to have used all three types of "weapons of mass destruction" (chemical, biological and nuclear)?

    A: The United States of America.

  8. ALL MODERATORS DIE by Anonymous Coward · · Score: -1, Offtopic

    puke in a sock for junis.

  9. Brigadier General Says Israel Is The Problem by Anonymous Coward · · Score: -1, Offtopic
    By James J. David Retired Brigadier General
    From RePortersNoteBook.com
    1-7-3

    Note - James J. David is a retired Brigadier General and a graduate of the U.S. Army's Command and General Staff College, and the National Security Course, National Defense University, Washington, DC. He served as a Company Commander with the 101st Airborne Division in the Republic of Vietnam in 1969 and 1970 and also served nearly 3 years of Army active duty in and around the Middle East from 1967-1969.

    Question: Which country alone in the Middle East has nuclear weapons? Answer: Israel.

    Q: Which country in the Middle East refuses to sign the nuclear non-proliferation treaty and bars international inspections? Answer: Israel.

    Q: Which country in the Middle East seized the sovereign territory of other nations by military force and continues to occupy it in defiance of United Nations Security Council resolutions? Answer: Israel.

    Q: Which country in the Middle East routinely violates the international borders of another sovereign state with warplanes and artillery and naval gunfire? Answer: Israel.

    Q: What American ally in the Middle East has for years sent assassins into other countries to kill its political enemies (a practice sometimes called exporting terrorism)? Answer: Israel.

    Q: In which country in the Middle East have high-ranking military officers admitted publicly that unarmed prisoners of war were executed? Answer: Israel.

    Q: What country in the Middle East refuses to prosecute its soldiers who have acknowledged executing prisoners of war? Answer: Israel.

    Q: What country in the Middle East created 762,000 refugees and refuses to allow them to return to their homes, farms and businesses? Answer: Israel.

    Q: What country in the Middle East refuses to pay compensation to people whose land, bank accounts and businesses it confiscated? Answer: Israel.

    Q: In what country in the Middle East was a high-ranking United Nations diplomat assassinated? Answer: Israel.

    Q: In what country in the Middle East did the man who ordered the assassination of a high-ranking U.N. diplomat become prime minister? Answer: Israel.

    Q: What country in the Middle East blew up an American diplomatic facility in Egypt and attacked a U.S. ship, the USS Liberty, in international waters, killing 34 and wounding 171 American sailors? Answer: Israel.

    Q: What country in the Middle East employed a spy, Jonathan Pollard, to steal classified documents and then gave some of them to the Soviet Union? Answer: Israel.

    Q: What country at first denied any official connection to Pollard, then voted to make him a citizen and has continuously demanded that the American president grant Pollard a full pardon? Answer: Israel.

    Q. What Middle East country allows American Jewish murderers to flee to its country to escape punishment in the United States and refuses to extradite them once in their custody? Answer: Israel

    Q. What Middle East country preaches against hate yet builds a shrine and a memorial for a murderer who killed 29 Palestinians while they prayed in their Mosque. Answer: Israel

    Q: What country on Planet Earth has the second most powerful lobby in the United States, according to a recent Fortune magazine survey of Washington insiders? Answer: Israel.

    Q. Which country in the Middle East deliberately targeted a U.N. Refugee Camp in Qana, Lebanon and killed 103 innocent men, women, and especially children? Answer: Israel

    Q: Which country in the Middle East is in defiance of 69 United Nations Security Council resolutions and has been protected from 29 more by U.S. vetoes? Answer: Israel.

    Q. Which country in the Middle East receives more than one-third of all U.S. aid yet is the 16th richest country in the world? Answer: Israel

    Q. Which country in the Middle East receives U.S. weapons for free and then sells the technology to the Republic of China even at the objections of the U.S.? Answer: Israel

    Q. Which country in the Middle East routinely insults the American people by having its Prime Minister address the United States Congress and lecturing them like children on why they have no right to reduce foreign aid? Answer: Israel

    Q. Which country in the Middle East had its Prime Minister announce to his staff not to worry about what the United States says because "We control America?" Answer: Israel

    Q. What country in the Middle East was cited by Amnesty International for demolishing more than 4000 innocent Palestinian homes as a means of ethnic cleansing. Answer: Israel

    Q. Which country in the Middle East has just recently used a weapon of mass destruction, a one-ton smart bomb, dropping it in the center of a highly populated area killing 15 civilians including 9 children? Answer: Israel

    Q. Which country in the Middle East routinely kills young Palestinian children for no reason other than throwing stones at armored vehicles, bulldozers, or tanks? Answer: Israel

    Q. Which country in the Middle East signed the Oslo Accords promising to halt any new Jewish Settlement construction, but instead, has built more than 270 new settlements since the signing? Answer: Israel

    Q. Which country in the Middle East has assassinated more than 100 political officials of its opponent in the last 2 years while killing hundreds of civilians in the process, including dozens of children? Answer: Israel

    Q.. Which country in the Middle East regularly violates the Geneva Convention by imposing collective punishment on entire towns, villages, and camps, for the acts of a few, and even goes as far as demolishing entire villages while people are still in their homes? Answer: Israel

    Q: What country in the Middle East is the United States threatening to attack because of fear that it may be a threat to us and to our allies? Answer: Iraq

    Click for more info.

  10. FIRST REPLY TO FIRST POST by Anonymous Coward · · Score: -1, Offtopic

    "YOU DID IT!" eats my jockeysmeg.

  11. Terrorists by Anonymous Coward · · Score: -1, Offtopic

    Q. Which country is the only one to have been tried and found guilty of terrorism in the International Court?

    A. The United States of America, who arrogantly dismissed the findings.

    And they wonder why we've had a gutsful...

  12. Re:HELLO. by Anonymous Coward · · Score: -1, Offtopic

    Hi, dingle, welcome aboard! I like the cut of your jib, young fellow-me-lad.

  13. I rewrote it too: by CoderByBirth · · Score: 0, Offtopic

    public class TheUltimateUnitTestingFramework {
    public static void assert(boolean b) throws Exception {
    if(!b)
    throw new Exception("assertion failed");
    }
    }
    I give it to you for free.
    Documentation isn't done yet, but I'm planning to spend the next year developing it.

  14. Come get me, MPAA/RIAA... by mraymer · · Score: -1, Offtopic
    I'm not a corward! ;)

    Here's the list of full length feature films I've downloaded off Kazaa... and on 56K, too!

    Blade Runner
    Braveheart
    Cube
    End of Evangelion
    The Matrix
    Monty Python and the Holy Grail
    Office Space
    Star Trek II: The Wrath of Khan
    Star Trek: Insurrection
    Terminator
    Terminator II: Judgment Day

    With a few more in progress right now... ;)

    --

    "To confine our attention to terrestrial matters would be to limit the human spirit." -Stephen Hawking