@Test public void calculate() { String width = "1"; String length = "2"; String height = "3"; mainViewModel.calculate(width, height, length); assertEquals(6, mainViewModel.result); }
void calculate(String width, String height, String length) { result = Integer.parseInt(width) * Integer.parseInt(height) * Integer.parseInt(length); }
MainViewModel extends ViewModel { void calculate(String width, String height, String length) { result = Integer.parseInt(width) * Integer.parseInt(height) * Integer.parseInt(length); } }
MainViewModel extends ViewModel { void calculate(String width, String height, String length) { result = Integer.parseInt(width) * Integer.parseInt(height) * Integer.parseInt(length); }  }
MainViewModel extends ViewModel { void calculate(String width, String height, String length) { result = Integer.parseInt(width) * Integer.parseInt(height) * Integer.parseInt(length); }   }
MainViewModel extends ViewModel { void calculate(String width, String height, String length) { result = Integer.parseInt(width) * Integer.parseInt(height) * Integer.parseInt(length); }    }