@Test public void updateLinkValid() throws PersistenceException, URISyntaxException { Exercise exercise1 = getDummyExercise(); Exercise exercise2 = new Exercise(exercise1); exercise2.setVideolink("test"); updateValid(exercise1, exercise2); }
@Test public void updateCatValid() throws PersistenceException, URISyntaxException { Exercise exercise1 = getDummyExercise(); Exercise exercise2 = new Exercise(exercise1); exercise2.setCategories(new ArrayList<>()); updateValid(exercise1, exercise2); }
@Test public void updateCaloriesValid() throws PersistenceException, URISyntaxException { Exercise exercise1 = getDummyExercise(); Exercise exercise2 = new Exercise(exercise1); exercise2.setCalories(1.0); updateValid(exercise1, exercise2); }