@Test public void testBuildChooserMappingForList() { Map<IsolationLevel, Chooser<List<String>>> chooserMappingFactory = ChooserMappingFactory.buildChooserMappingForList(obj -> { }); assertTrue(chooserMappingFactory.get(IsolationLevel.NONE) instanceof NoneIsolationListChooser); assertTrue(chooserMappingFactory.get(IsolationLevel.TRANSITIONAL) instanceof TransitionalIsolationListChooser); assertTrue(chooserMappingFactory.get(IsolationLevel.FULL) instanceof FullIsolationChooser); }
public static <T> Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning) { Map<IsolationLevel, Chooser<List<T>>> chooserMap = new HashMap<>(); chooserMap.put(IsolationLevel.NONE, new NoneIsolationListChooser<>()); chooserMap.put(IsolationLevel.TRANSITIONAL, new TransitionalIsolationListChooser<>(reportDelegateUsageWarning)); chooserMap.put(IsolationLevel.FULL, new FullIsolationChooser<>()); return Collections.unmodifiableMap(chooserMap); }
ChooserMappingFactory { public static <T> Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning) { Map<IsolationLevel, Chooser<List<T>>> chooserMap = new HashMap<>(); chooserMap.put(IsolationLevel.NONE, new NoneIsolationListChooser<>()); chooserMap.put(IsolationLevel.TRANSITIONAL, new TransitionalIsolationListChooser<>(reportDelegateUsageWarning)); chooserMap.put(IsolationLevel.FULL, new FullIsolationChooser<>()); return Collections.unmodifiableMap(chooserMap); } }
ChooserMappingFactory { public static <T> Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning) { Map<IsolationLevel, Chooser<List<T>>> chooserMap = new HashMap<>(); chooserMap.put(IsolationLevel.NONE, new NoneIsolationListChooser<>()); chooserMap.put(IsolationLevel.TRANSITIONAL, new TransitionalIsolationListChooser<>(reportDelegateUsageWarning)); chooserMap.put(IsolationLevel.FULL, new FullIsolationChooser<>()); return Collections.unmodifiableMap(chooserMap); }  }
ChooserMappingFactory { public static <T> Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning) { Map<IsolationLevel, Chooser<List<T>>> chooserMap = new HashMap<>(); chooserMap.put(IsolationLevel.NONE, new NoneIsolationListChooser<>()); chooserMap.put(IsolationLevel.TRANSITIONAL, new TransitionalIsolationListChooser<>(reportDelegateUsageWarning)); chooserMap.put(IsolationLevel.FULL, new FullIsolationChooser<>()); return Collections.unmodifiableMap(chooserMap); }  static Map<IsolationLevel, Chooser<T>> buildChooserMapping(Consumer<T> reportDelegateUsageWarning); static Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning); }
ChooserMappingFactory { public static <T> Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning) { Map<IsolationLevel, Chooser<List<T>>> chooserMap = new HashMap<>(); chooserMap.put(IsolationLevel.NONE, new NoneIsolationListChooser<>()); chooserMap.put(IsolationLevel.TRANSITIONAL, new TransitionalIsolationListChooser<>(reportDelegateUsageWarning)); chooserMap.put(IsolationLevel.FULL, new FullIsolationChooser<>()); return Collections.unmodifiableMap(chooserMap); }  static Map<IsolationLevel, Chooser<T>> buildChooserMapping(Consumer<T> reportDelegateUsageWarning); static Map<IsolationLevel, Chooser<List<T>>> buildChooserMappingForList(Consumer<List<T>> reportDelegateUsageWarning);  }