com.google.caja.reporting
Class SnippetProducerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.google.caja.reporting.SnippetProducerTest
All Implemented Interfaces:
junit.framework.Test

public class SnippetProducerTest
extends junit.framework.TestCase

Author:
mikesamuel@gmail.com

Nested Class Summary
static class SnippetProducerTest.TestMessageType
           
 
Field Summary
(package private)  InputSource f1
           
(package private) static java.lang.String F1_TEXT
           
(package private)  InputSource f2
           
(package private) static java.lang.String F2_TEXT
           
(package private)  InputSource f3
           
(package private) static java.lang.String F3_TEXT
           
(package private)  SnippetProducer s
           
(package private)  SnippetProducer s10
           
 
Constructor Summary
SnippetProducerTest()
           
 
Method Summary
 void setUp()
           
 void testGetSnippetNoPos()
           
 void testGetSnippetOnePartNoPos()
           
 void testGetSnippetOnePos()
           
 void testGetSnippetTwoPos()
           
 void testLongLineCutBoth()
           
 void testLongLineCutLeft()
           
 void testLongLineCutRight()
           
 void testLongLineUncut()
           
 void testZeroLengthAtEndOfFile()
           
 void testZeroLengthAtEndOfLine()
           
 void testZeroLengthRegion()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

F1_TEXT

static final java.lang.String F1_TEXT
See Also:
Constant Field Values

F2_TEXT

static final java.lang.String F2_TEXT
See Also:
Constant Field Values

F3_TEXT

static final java.lang.String F3_TEXT
See Also:
Constant Field Values

s

SnippetProducer s

s10

SnippetProducer s10

f1

final InputSource f1

f2

final InputSource f2

f3

final InputSource f3
Constructor Detail

SnippetProducerTest

public SnippetProducerTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetSnippetNoPos

public final void testGetSnippetNoPos()

testGetSnippetOnePartNoPos

public final void testGetSnippetOnePartNoPos()

testGetSnippetOnePos

public final void testGetSnippetOnePos()

testGetSnippetTwoPos

public final void testGetSnippetTwoPos()

testZeroLengthRegion

public final void testZeroLengthRegion()

testZeroLengthAtEndOfLine

public final void testZeroLengthAtEndOfLine()

testZeroLengthAtEndOfFile

public final void testZeroLengthAtEndOfFile()

testLongLineUncut

public final void testLongLineUncut()

testLongLineCutRight

public final void testLongLineCutRight()

testLongLineCutLeft

public final void testLongLineCutLeft()

testLongLineCutBoth

public final void testLongLineCutBoth()


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0