From 3a3b0cb17518b4f5f22c540848fa11d27c2ec1cf Mon Sep 17 00:00:00 2001 From: eugenp Date: Wed, 6 Nov 2013 15:12:25 +0200 Subject: [PATCH] cleanup work --- .../guava/GuavaCollectionsExamplesTest.java | 189 ------------------ .../guava/GuavaFunctionalExamplesTest.java | 186 ----------------- .../guava/GuavaOrderingExamplesTest.java | 179 ----------------- .../hamcrest/HamcrestExamplesTest.java | 97 --------- .../mockito/MockitoVerifyExamplesTest.java | 14 ++ 5 files changed, 14 insertions(+), 651 deletions(-) delete mode 100644 mockito/src/test/java/org/baeldung/guava/GuavaCollectionsExamplesTest.java delete mode 100644 mockito/src/test/java/org/baeldung/guava/GuavaFunctionalExamplesTest.java delete mode 100644 mockito/src/test/java/org/baeldung/guava/GuavaOrderingExamplesTest.java delete mode 100644 mockito/src/test/java/org/baeldung/hamcrest/HamcrestExamplesTest.java create mode 100644 mockito/src/test/java/org/baeldung/mockito/MockitoVerifyExamplesTest.java diff --git a/mockito/src/test/java/org/baeldung/guava/GuavaCollectionsExamplesTest.java b/mockito/src/test/java/org/baeldung/guava/GuavaCollectionsExamplesTest.java deleted file mode 100644 index 2c137e6c80..0000000000 --- a/mockito/src/test/java/org/baeldung/guava/GuavaCollectionsExamplesTest.java +++ /dev/null @@ -1,189 +0,0 @@ -package org.baeldung.guava; - -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Set; - -import org.junit.Test; - -import com.google.common.base.Function; -import com.google.common.base.Predicate; -import com.google.common.base.Predicates; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Iterables; -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; -import com.google.common.collect.Sets; - -@SuppressWarnings("unused") -public class GuavaCollectionsExamplesTest { - - // tests - - @Test - public final void whenDowncastingGenerifiedCollectionToNewGenerifiedCollection_thenCastIsOK() { - final class CastFunction implements Function { - @SuppressWarnings("unchecked") - @Override - public final T apply(final F from) { - return (T) from; - } - } - - final List originalList = Lists.newArrayList(); - final List selectedProducts = Lists.transform(originalList, new CastFunction()); - System.out.println(selectedProducts); - } - - @SuppressWarnings({ "unchecked" }) - @Test - public final void whenDowncastingGenerifiedCollectionToNewGenerifiedCollection_thenCastIsOK2() { - final List originalList = Lists.newArrayList(); - final List selectedProducts = (List) (List) originalList; - System.out.println(selectedProducts); - } - - @Test - public final void whenAddingAnIterableToACollection_thenAddedOK() { - final Iterable iter = Lists.newArrayList(); - final Collection collector = Lists.newArrayList(); - Iterables.addAll(collector, iter); - } - - // - - @Test - public final void whenCheckingIfCollectionContainsElementsByCustomMatch1_thenContains() { - final Iterable theCollection = Lists.newArrayList("a", "bc", "def"); - final boolean contains = Iterables.any(theCollection, new Predicate() { - @Override - public final boolean apply(final String input) { - return input.length() == 1; - } - }); - - assertTrue(contains); - } - - @Test - public final void whenCheckingIfCollectionContainsElementsByCustomMatch2_thenContains() { - final Set theCollection = Sets.newHashSet("a", "bc", "def"); - - final boolean contains = !Sets.filter(theCollection, new Predicate() { - @Override - public final boolean apply(final String input) { - return input.length() == 1; - } - }).isEmpty(); - - assertTrue(contains); - } - - @Test - public final void whenCheckingIfCollectionContainsElementsByCustomMatch3_thenContains() { - final Iterable theCollection = Sets.newHashSet("a", "bc", "def"); - - final boolean contains = Iterables.find(theCollection, new Predicate() { - @Override - public final boolean apply(final String input) { - return input.length() == 1; - } - }) != null; - - assertTrue(contains); - } - - // - - @Test(expected = NoSuchElementException.class) - public final void givenNoSearchResult_whenFindingElementInIterable_thenException() { - final Iterable theCollection = Sets.newHashSet("abcd", "efgh", "ijkl"); - - final String found = Iterables.find(theCollection, new Predicate() { - @Override - public final boolean apply(final String input) { - return input.length() == 1; - } - }); - - assertNull(found); - } - - @Test - public final void givenNoSearchResult_whenFindingElementInIterableWithSpecifiedReturn_thenNoException() { - final Iterable theCollection = Sets.newHashSet("abcd", "efgh", "ijkl"); - - final Predicate inputOfLengthOne = new Predicate() { - @Override - public final boolean apply(final String input) { - return input.length() == 1; - } - }; - final String found = Iterables.find(theCollection, inputOfLengthOne, null); - - assertNull(found); - } - - // purge of nulls - - @Test - public final void givenListContainsNulls_whenPurgedOfNulls_thenNoLongerContainsNulls() { - final List values = Lists.newArrayList("a", null, "b", "c"); - final Iterable withoutNulls = Iterables.filter(values, Predicates.notNull()); - System.out.println(withoutNulls); - } - - // immutable collections - - @Test - public final void whenCreatingImuutableCollections_thenNoExceptions() { - final ImmutableList immutableList = ImmutableList.of("a", "b", "c"); - final ImmutableSet immutableSet = ImmutableSet.of("a", "b", "c"); - final ImmutableMap imuttableMap = ImmutableMap.of("k1", "v1", "k2", "v2", "k3", "v3"); - } - - @Test - public final void whenTransformingCollectionsToImmutable_thenNoExceptions() { - final List muttableList = Lists.newArrayList(); - final ImmutableList immutableList = ImmutableList.copyOf(muttableList); - - final Set muttableSet = Sets.newHashSet(); - final ImmutableSet immutableSet = ImmutableSet.copyOf(muttableSet); - - final Map muttableMap = Maps.newHashMap(); - final ImmutableMap imuttableMap = ImmutableMap.copyOf(muttableMap); - } - - @Test - public final void whenTransformingCollectionsToImmutableViaBuilders_thenNoExceptions() { - final List muttableList = Lists.newArrayList(); - final ImmutableList immutableList = ImmutableList. builder().addAll(muttableList).build(); - - final Set muttableSet = Sets.newHashSet(); - final ImmutableSet immutableSet = ImmutableSet. builder().addAll(muttableSet).build(); - - final Map muttableMap = Maps.newHashMap(); - final ImmutableMap imuttableMap = ImmutableMap. builder().putAll(muttableMap).build(); - } - - // unmodifiable - - @Test(expected = UnsupportedOperationException.class) - public final void givenUnmodifiableViewOverIterable_whenTryingToRemove_thenNotAllowed() { - final List numbers = Lists.newArrayList(1, 2, 3); - final Iterable unmodifiableIterable = Iterables.unmodifiableIterable(numbers); - final Iterator iterator = unmodifiableIterable.iterator(); - if (iterator.hasNext()) { - iterator.remove(); - } - } - -} diff --git a/mockito/src/test/java/org/baeldung/guava/GuavaFunctionalExamplesTest.java b/mockito/src/test/java/org/baeldung/guava/GuavaFunctionalExamplesTest.java deleted file mode 100644 index 08091639f1..0000000000 --- a/mockito/src/test/java/org/baeldung/guava/GuavaFunctionalExamplesTest.java +++ /dev/null @@ -1,186 +0,0 @@ -package org.baeldung.guava; - -import static org.hamcrest.Matchers.contains; -import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.lessThan; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.junit.Test; - -import com.google.common.base.Function; -import com.google.common.base.Functions; -import com.google.common.base.Predicate; -import com.google.common.base.Predicates; -import com.google.common.collect.Collections2; -import com.google.common.collect.FluentIterable; -import com.google.common.collect.Iterables; -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; -import com.google.common.collect.Ordering; -import com.google.common.collect.Sets; - -public class GuavaFunctionalExamplesTest { - - // tests - - // predicates - filtering - - @Test - public final void whenFilteringNumbersAccordingToACondition_thenCorrectResults() { - final List numbers = Lists.newArrayList(1, 2, 3, 6, 8, 10, 34, 57, 89); - final Predicate acceptEvenNumber = new Predicate() { - @Override - public final boolean apply(final Integer number) { - return (number % 2) == 0; - } - }; - final List evenNumbers = Lists.newArrayList(Collections2.filter(numbers, acceptEvenNumber)); - - final Integer found = Collections.binarySearch(evenNumbers, 57); - assertThat(found, lessThan(0)); - } - - @Test - public final void givenCollectionContainsNulls_whenNullsAreFilteredOut_thenResultingCollectionsHasNoNulls() { - final List withNulls = Lists.newArrayList("a", "bc", null, "def"); - final Iterable withoutNuls = Iterables.filter(withNulls, Predicates.notNull()); - - assertTrue(Iterables.all(withoutNuls, Predicates.notNull())); - } - - // predicates - checking - - @Test - public final void givenEvenNumbers_whenCheckingIfAllSatisfyTheEvenPredicate_thenYes() { - final List evenNumbers = Lists.newArrayList(2, 6, 8, 10, 34, 90); - final Predicate acceptEvenNumber = new Predicate() { - @Override - public final boolean apply(final Integer number) { - return (number % 2) == 0; - } - }; - - assertTrue(Iterables.all(evenNumbers, acceptEvenNumber)); - } - - // negating a predicate - - @Test - public final void givenCollectionOfEvenNumbers_whenCheckingThatCollectionContainsNoOddNumber_thenTrue() { - final List evenNumbers = Lists.newArrayList(2, 6, 8, 10, 34, 90); - final Predicate acceptOddNumber = new Predicate() { - @Override - public final boolean apply(final Integer number) { - return (number % 2) != 0; - } - }; - - assertTrue(Iterables.all(evenNumbers, Predicates.not(acceptOddNumber))); - } - - // other predicates - - @Test - public final void when_thenCorrect() { - // CharMatcher.forPredicate(predicate) - } - - // functions - - @Test - public final void whenApplyingSimpleFunctionToInputs_thenCorrectlyTransformed() { - final List numbers = Lists.newArrayList(1, 2, 3); - final List numbersAsStrings = Lists.transform(numbers, Functions.toStringFunction()); - assertThat(numbersAsStrings, contains("1", "2", "3")); - } - - @Test - public final void whenUsingAnIntermediaryFunctionToOrder_thenCorerctlyOrderedInAlphabeticalOrder() { - final List numbersToSort = Arrays.asList(2, 1, 11, 100, 8, 14); - final Ordering ordering = Ordering.natural().onResultOf(Functions.toStringFunction()); - final List inAlphabeticalOrder = ordering.sortedCopy(numbersToSort); - - final List correctAlphabeticalOrder = Lists.newArrayList(1, 100, 11, 14, 2, 8); - assertThat(correctAlphabeticalOrder, equalTo(inAlphabeticalOrder)); - } - - @Test - public final void whenChainingPredicatesAndFunctions_thenCorrectResults() { - final List numbers = Arrays.asList(2, 1, 11, 100, 8, 14); - final Predicate acceptEvenNumber = new Predicate() { - @Override - public final boolean apply(final Integer number) { - return (number % 2) == 0; - } - }; - final Function powerOfTwo = new Function() { - @Override - public final Integer apply(final Integer input) { - return (int) Math.pow(input, 2); - } - }; - - final FluentIterable powerOfTwoOnlyForEvenNumbers = FluentIterable.from(numbers).filter(acceptEvenNumber).transform(powerOfTwo); - assertThat(powerOfTwoOnlyForEvenNumbers, contains(4, 10000, 64, 196)); - } - - @Test - public final void whenUsingFunctionComposition_thenCorrectResults() { - final List numbers = Arrays.asList(2, 3); - final Function powerOfTwo = new Function() { - @Override - public final Integer apply(final Integer input) { - return (int) Math.pow(input, 2); - } - }; - - final List result = Lists.transform(numbers, Functions.compose(powerOfTwo, powerOfTwo)); - assertThat(result, contains(16, 81)); - } - - // Set+Function => Map - - /** - * - see: http://code.google.com/p/guava-libraries/issues/detail?id=56 - */ - @Test - public final void whenMapIsBackedBySetAndFunction_thenCorrect() { - final Function powerOfTwo = new Function() { - @Override - public final Integer apply(final Integer input) { - return (int) Math.pow(input, 2); - } - }; - final Set lowNumbers = Sets.newHashSet(2, 3, 4); - - final Map numberToPowerOfTwoMuttable = Maps.asMap(lowNumbers, powerOfTwo); - final Map numberToPowerOfTwoImuttable = Maps.toMap(lowNumbers, powerOfTwo); - assertThat(numberToPowerOfTwoMuttable.get(2), equalTo(4)); - assertThat(numberToPowerOfTwoImuttable.get(2), equalTo(4)); - } - - // Predicate => Function - - @Test - public final void whenConvertingPredicateToFunction_thenCorrect() { - final List numbers = Lists.newArrayList(1, 2, 3, 6); - final Predicate acceptEvenNumber = new Predicate() { - @Override - public final boolean apply(final Integer number) { - return (number % 2) == 0; - } - }; - final Function isEventNumberFunction = Functions.forPredicate(acceptEvenNumber); - final List areNumbersEven = Lists.transform(numbers, isEventNumberFunction); - - assertThat(areNumbersEven, contains(false, true, false, true)); - } - -} diff --git a/mockito/src/test/java/org/baeldung/guava/GuavaOrderingExamplesTest.java b/mockito/src/test/java/org/baeldung/guava/GuavaOrderingExamplesTest.java deleted file mode 100644 index 5821d19ba0..0000000000 --- a/mockito/src/test/java/org/baeldung/guava/GuavaOrderingExamplesTest.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.baeldung.guava; - -import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.nullValue; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.junit.Test; - -import com.google.common.base.Functions; -import com.google.common.collect.Lists; -import com.google.common.collect.Ordering; -import com.google.common.primitives.Ints; - -public class GuavaOrderingExamplesTest { - - private final class OrderingByLenght extends Ordering { - @Override - public final int compare(final String s1, final String s2) { - return Ints.compare(s1.length(), s2.length()); - } - } - - // tests - - // dealing with null - - @Test - public final void givenCollectionWithNulls_whenSortingWithNullsLast_thenNullsAreLast() { - final List toSort = Arrays.asList(3, 5, 4, null, 1, 2); - Collections.sort(toSort, Ordering.natural().nullsLast()); - assertThat(toSort.get(toSort.size() - 1), nullValue()); - } - - @Test - public final void givenCollectionWithNulls_whenSortingWithNullsFirst_thenNullsAreFirst() { - final List toSort = Arrays.asList(3, 5, 4, null, 1, 2); - Collections.sort(toSort, Ordering.natural().nullsFirst()); - assertThat(toSort.get(0), nullValue()); - } - - @Test - public final void whenCollectionIsSortedNullsLastReversed_thenNullAreFirst() { - final List toSort = Arrays.asList(3, 5, 4, null, 1, 2); - Collections.sort(toSort, Ordering.natural().nullsLast().reverse()); - assertThat(toSort.get(0), nullValue()); - } - - // natural ordering - - @Test - public final void whenSortingWithNaturalOrdering_thenCorectlySorted() { - final List toSort = Arrays.asList(3, 5, 4, 1, 2); - Collections.sort(toSort, Ordering.natural()); - - assertTrue(Ordering.natural().isOrdered(toSort)); - } - - // checking string ordering - - @Test - public final void givenCollectionContainsDuplicates_whenCheckingStringOrdering_thenNo() { - final List toSort = Arrays.asList(3, 5, 4, 2, 1, 2); - Collections.sort(toSort, Ordering.natural()); - - assertFalse(Ordering.natural().isStrictlyOrdered(toSort)); - } - - // custom - by length - - @Test - public final void givenCollectionIsSorted_whenUsingOrderingApiToCheckOrder_thenCheckCanBePerformed() { - final List toSort = Arrays.asList("zz", "aa", "b", "ccc"); - final Ordering byLength = new OrderingByLenght(); - Collections.sort(toSort, byLength); - - final Ordering expectedOrder = Ordering.explicit(Lists.newArrayList("b", "zz", "aa", "ccc")); - assertTrue(expectedOrder.isOrdered(toSort)); - } - - @Test - public final void whenSortingCollectionsOfStringsByLenght_thenCorrectlySorted() { - final List toSort = Arrays.asList("zz", "aa", "b", "ccc"); - final Ordering byLength = new OrderingByLenght(); - - Collections.sort(toSort, byLength); - - final Ordering expectedOrder = Ordering.explicit(Lists.newArrayList("b", "zz", "aa", "ccc")); - assertTrue(expectedOrder.isOrdered(toSort)); - } - - @Test - public final void whenSortingCollectionsOfStringsByLenghtWithSecondaryNaturalOrdering_thenCorrectlySorted() { - final List toSort = Arrays.asList("zz", "aa", "b", "ccc"); - final Ordering byLength = new OrderingByLenght(); - - Collections.sort(toSort, byLength.compound(Ordering.natural())); - - final Ordering expectedOrder = Ordering.explicit(Lists.newArrayList("b", "aa", "zz", "ccc")); - assertTrue(expectedOrder.isOrdered(toSort)); - } - - @Test - public final void whenSortingCollectionsWithComplexOrderingExample_thenCorrectlySorted() { - final List toSort = Arrays.asList("zz", "aa", null, "b", "ccc"); - - Collections.sort(toSort, new OrderingByLenght().reverse().compound(Ordering.natural()).nullsLast()); - System.out.println(toSort); - } - - // sorted copy - - @Test - public final void givenUnorderdList_whenRetrievingSortedCopy_thenSorted() { - final List toSort = Arrays.asList("aa", "b", "ccc"); - final List sortedCopy = new OrderingByLenght().sortedCopy(toSort); - - final Ordering expectedOrder = Ordering.explicit(Lists.newArrayList("b", "aa", "ccc")); - assertFalse(expectedOrder.isOrdered(toSort)); - assertTrue(expectedOrder.isOrdered(sortedCopy)); - } - - // to string - - @Test - public final void givenUnorderdList_whenUsingToStringForSortingObjects_thenSortedWithToString() { - final List toSort = Arrays.asList(1, 2, 11); - Collections.sort(toSort, Ordering.usingToString()); - - final Ordering expectedOrder = Ordering.explicit(Lists.newArrayList(1, 11, 2)); - assertTrue(expectedOrder.isOrdered(toSort)); - } - - // binary search - - @Test - public final void whenPerformingBinarySearch_thenFound() { - final List toSort = Arrays.asList(1, 2, 11); - Collections.sort(toSort, Ordering.usingToString()); - final int found = Ordering.usingToString().binarySearch(toSort, 2); - - System.out.println(found); - } - - // min/max without actually sorting - - @Test - public final void whenFindingTheMinimalElementWithoutSorting_thenFound() { - final List toSort = Arrays.asList(2, 1, 11, 100, 8, 14); - final int found = Ordering.natural().min(toSort); - assertThat(found, equalTo(1)); - } - - @Test - public final void whenFindingTheFirstFewElements_thenCorrect() { - final List toSort = Arrays.asList(2, 1, 11, 100, 8, 14); - final List leastOf = Ordering.natural().leastOf(toSort, 3); - final List expected = Lists.newArrayList(1, 2, 8); - assertThat(expected, equalTo(leastOf)); - } - - // order the results of a Function - - @Test - public final void givenListOfNumbers_whenRunningAToStringFunctionThenSorting_thenCorrect() { - final List toSort = Arrays.asList(2, 1, 11, 100, 8, 14); - final Ordering ordering = Ordering.natural().onResultOf(Functions.toStringFunction()); - final List sortedCopy = ordering.sortedCopy(toSort); - - final List expected = Lists.newArrayList(1, 100, 11, 14, 2, 8); - assertThat(expected, equalTo(sortedCopy)); - } - -} diff --git a/mockito/src/test/java/org/baeldung/hamcrest/HamcrestExamplesTest.java b/mockito/src/test/java/org/baeldung/hamcrest/HamcrestExamplesTest.java deleted file mode 100644 index a44ce766f0..0000000000 --- a/mockito/src/test/java/org/baeldung/hamcrest/HamcrestExamplesTest.java +++ /dev/null @@ -1,97 +0,0 @@ -package org.baeldung.hamcrest; - -import static org.hamcrest.Matchers.contains; -import static org.hamcrest.Matchers.containsInAnyOrder; -import static org.hamcrest.Matchers.empty; -import static org.hamcrest.Matchers.emptyArray; -import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.everyItem; -import static org.hamcrest.Matchers.greaterThan; -import static org.hamcrest.Matchers.hasItem; -import static org.hamcrest.Matchers.hasItems; -import static org.hamcrest.Matchers.hasSize; -import static org.hamcrest.Matchers.not; -import static org.junit.Assert.assertThat; - -import java.util.Collections; -import java.util.List; -import java.util.Map; - -import org.hamcrest.Matchers; -import org.junit.Test; - -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; - -public class HamcrestExamplesTest { - - // tests - - @Test - public final void whenVerifyingSingleElementIsPartOfCollection_thenCorrect() { - final List collection = Lists.newArrayList("ab", "cd", "ef"); - assertThat(collection, hasItem("cd")); - assertThat(collection, not(hasItem("zz"))); - } - - @Test - public final void whenVerifyingMultipleElementsArePartOfCollection_thenCorrect1() { - final List collection = Lists.newArrayList("ab", "cd", "ef"); - assertThat(collection, hasItems("ef", "cd")); - } - - @Test - public final void whenVerifyingMultipleElementsArePartOfCollectionInStrictOrder_thenCorrect2() { - final List collection = Lists.newArrayList("ab", "cd", "ef"); - assertThat(collection, contains("ab", "cd", "ef")); - } - - @Test - public final void whenVerifyingMultipleElementsArePartOfCollectionInAnyOrder_thenCorrect2() { - final List collection = Lists.newArrayList("ab", "cd", "ef"); - assertThat(collection, containsInAnyOrder("cd", "ab", "ef")); - } - - @Test - public final void givenCollectionIsEmpty_whenChecking_thenEmpty() { - final List collection = Lists.newArrayList(); - assertThat(collection, empty()); - } - - @Test - public final void givenCollectionIsNotEmpty_whenChecking_thenNotEmpty() { - final List collection = Lists.newArrayList("a"); - assertThat(collection, not(empty())); - } - - @Test - public final void givenMapIsEmpty_whenChecking_thenEmpty() { - final Map collection = Maps.newHashMap(); - assertThat(collection, equalTo(Collections.EMPTY_MAP)); - } - - @Test - public final void givenArrayIsEmpty_whenChecking_thenEmpty() { - final String[] array = new String[] { "ab" }; - assertThat(array, not(emptyArray())); - } - - @Test - public final void whenCollectionSizeIsChecked_thenCorrect() { - final List collection = Lists.newArrayList("ab", "cd", "ef"); - assertThat(collection, hasSize(3)); - } - - @Test - public final void whenIterableSizeIsChecked_thenCorrect() { - final Iterable collection = Lists.newArrayList("ab", "cd", "ef"); - assertThat(collection, Matchers. iterableWithSize(3)); - } - - @Test - public final void whenCheckingConditionOverEachItem_thenCorrect() { - final List collection = Lists.newArrayList(15, 20, 25, 30); - assertThat(collection, everyItem(greaterThan(10))); - } - -} diff --git a/mockito/src/test/java/org/baeldung/mockito/MockitoVerifyExamplesTest.java b/mockito/src/test/java/org/baeldung/mockito/MockitoVerifyExamplesTest.java new file mode 100644 index 0000000000..001c055b46 --- /dev/null +++ b/mockito/src/test/java/org/baeldung/mockito/MockitoVerifyExamplesTest.java @@ -0,0 +1,14 @@ +package org.baeldung.mockito; + +import org.junit.Test; + +public class MockitoVerifyExamplesTest { + + // tests + + @Test + public final void when_thenCorrect() { + // + } + +}