test_class.file: lib/common/src/test/java/dk/alexandra/fresco/lib/common/collections/MatrixTest.java
test_class.identifier: MatrixTest
test_case.body: @Test
    public void testToString() {
      IntFunction<ArrayList<Integer>> mockFunction = mock(IntFunction.class);
      when(mockFunction.apply(any(int.class))).thenReturn(new ArrayList<>());
      Matrix matrix = new Matrix(1, 2, mockFunction);
  
      String stringOut = matrix.toString();
      Assert.assertTrue(stringOut.contains("width=2,"));
      Assert.assertTrue(stringOut.contains("height=1,"));
      Assert.assertTrue(stringOut.contains("matrix=[[]]"));
    }
test_case.class_method_signature: MatrixTest.testToString()
test_case.full_signature: @Test public void testToString()
test_case.identifier: testToString
test_case.invocations: mock thenReturn when apply any toString assertTrue contains assertTrue contains assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToString()
focal_class.declarator: width
focal_class.modifier: private final
focal_class.original_string: private final int width;
focal_class.type: int
focal_class.var_name: width
focal_class.declarator: height
focal_class.modifier: private final
focal_class.original_string: private final int height;
focal_class.type: int
focal_class.var_name: height
focal_class.declarator: matrix
focal_class.modifier: private final
focal_class.original_string: private final ArrayList<ArrayList<T>> matrix;
focal_class.type: ArrayList<ArrayList<T>>
focal_class.var_name: matrix
focal_class.file: lib/common/src/main/java/dk/alexandra/fresco/lib/common/collections/Matrix.java
focal_class.identifier: Matrix
focal_class.class_method_signature: Matrix.Matrix(int height, int width, IntFunction<ArrayList<T>> rowBuilder)
focal_class.full_signature: public  Matrix(int height, int width, IntFunction<ArrayList<T>> rowBuilder)
focal_class.identifier: Matrix
focal_class.modifiers: public
focal_class.parameters: (int height, int width, IntFunction<ArrayList<T>> rowBuilder)
focal_class.signature:  Matrix(int height, int width, IntFunction<ArrayList<T>> rowBuilder)
focal_class.class_method_signature: Matrix.Matrix(Matrix<T> other)
focal_class.full_signature: public  Matrix(Matrix<T> other)
focal_class.identifier: Matrix
focal_class.modifiers: public
focal_class.parameters: (Matrix<T> other)
focal_class.signature:  Matrix(Matrix<T> other)
focal_class.class_method_signature: Matrix.Matrix(int height, int width, ArrayList<ArrayList<T>> matrix)
focal_class.full_signature: public  Matrix(int height, int width, ArrayList<ArrayList<T>> matrix)
focal_class.identifier: Matrix
focal_class.modifiers: public
focal_class.parameters: (int height, int width, ArrayList<ArrayList<T>> matrix)
focal_class.signature:  Matrix(int height, int width, ArrayList<ArrayList<T>> matrix)
focal_class.class_method_signature: Matrix.getRows()
focal_class.full_signature: public ArrayList<ArrayList<T>> getRows()
focal_class.identifier: getRows
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ArrayList<ArrayList<T>>
focal_class.signature: ArrayList<ArrayList<T>> getRows()
focal_class.class_method_signature: Matrix.getRow(int i)
focal_class.full_signature: public ArrayList<T> getRow(int i)
focal_class.identifier: getRow
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: ArrayList<T>
focal_class.signature: ArrayList<T> getRow(int i)
focal_class.class_method_signature: Matrix.setRow(int i, ArrayList<T> row)
focal_class.full_signature: public void setRow(int i, ArrayList<T> row)
focal_class.identifier: setRow
focal_class.modifiers: public
focal_class.parameters: (int i, ArrayList<T> row)
focal_class.return: void
focal_class.signature: void setRow(int i, ArrayList<T> row)
focal_class.class_method_signature: Matrix.getWidth()
focal_class.full_signature: public int getWidth()
focal_class.identifier: getWidth
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getWidth()
focal_class.class_method_signature: Matrix.getHeight()
focal_class.full_signature: public int getHeight()
focal_class.identifier: getHeight
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getHeight()
focal_class.class_method_signature: Matrix.getColumn(int i)
focal_class.full_signature: public List<T> getColumn(int i)
focal_class.identifier: getColumn
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: List<T>
focal_class.signature: List<T> getColumn(int i)
focal_class.class_method_signature: Matrix.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
    public String toString() {
      return "Matrix{" + "width=" + width + ", height=" + height + ", matrix=" + matrix + '}';
    }
focal_method.class_method_signature: Matrix.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()