Revision 27361 trunk/libraries/libRaster/src-test/org/gvsig/raster/grid/TGOperations.java

View differences:

TGOperations.java
97 97
			e.printStackTrace();
98 98
		} catch (GridException e) {
99 99
			e.printStackTrace();
100
		} catch (InterruptedException e) {
100 101
		}
101 102
	}
102 103
	
103
	private void init(Grid g) throws OutOfGridException{
104
	private void init(Grid g) throws OutOfGridException, InterruptedException{
104 105
		for (int i = 0; i < g.getNX(); i++) {
105 106
			for (int j = 0; j < g.getNY(); j++)
106 107
				g.setCellValue(j, i, (int)(j + i));
107 108
		}
108 109
	}
109 110
	
110
	private void compare(int[][] m, Grid g) throws RasterBufferInvalidAccessException, GridException {
111
	private void compare(int[][] m, Grid g) throws RasterBufferInvalidAccessException, GridException, InterruptedException {
111 112
		for(int line = 0; line < g.getNY(); line++){
112 113
			for(int col = 0; col < g.getNX(); col++)
113 114
				assertEquals(g.getCellValueAsInt(col, line), m[line][col]);

Also available in: Unified diff