Skip to content

Commit

Permalink
Added some commentary to the new test to explain what and why.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbutler committed Dec 8, 2011
1 parent 0707009 commit 93bdaa4
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,19 @@ public void peerTestSet1Case5() throws Exception {
return expectedResults;
}

/**
* This test was introduced as a results of this bug report:
* https://bugs.launchpad.net/openquake/+bug/901092
*
* FloatingPoissonFaultSource overrides the setTectonicRegionType
* method from the base class (ProbEqkSource).
*
* However, the override fails to do what the base implementation
* does: set the tectonic region type.
*
* I wonder how long this bug has been here, and why we found
* it just now.
*/
@Test
public void testSetTectonicRegionTypeActuallySetsTectonicRegionType() {
FloatingPoissonFaultSource src =
Expand Down

0 comments on commit 93bdaa4

Please sign in to comment.