test_class.declarator: security
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Security security;
test_class.type: Security
test_class.var_name: security
test_class.declarator: provider
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private CommonViewsProvider provider;
test_class.type: CommonViewsProvider
test_class.var_name: provider
test_class.file: dataprep-api/src/test/java/org/talend/dataprep/api/service/settings/views/provider/CommonViewsProviderTest.java
test_class.identifier: CommonViewsProviderTest
test_case.body: @Test
      public void shouldGetProviderForNonTDPUsers() {
          // given
          Mockito.when(security.isTDPUser()).thenReturn(false);
  
          // when
          final List<ViewSettings> settings = provider.getSettings();
  
          // then
          assertNotNull(settings);
          assertEquals(4, settings.size());
          assertTrue(settings.contains(HomeViewsForNonTDPUsers.appHeaderBarForNonTdpUsers()));
          assertTrue(settings.contains(HomeViewsForNonTDPUsers.sidePanel()));
          assertTrue(settings.contains(ListViews.folderList()));
          assertTrue(settings.contains(ListViews.preparationList()));
      }
test_case.class_method_signature: CommonViewsProviderTest.shouldGetProviderForNonTDPUsers()
test_case.full_signature: @Test public void shouldGetProviderForNonTDPUsers()
test_case.identifier: shouldGetProviderForNonTDPUsers
test_case.invocations: thenReturn when isTDPUser getSettings assertNotNull assertEquals size assertTrue contains appHeaderBarForNonTdpUsers assertTrue contains sidePanel assertTrue contains folderList assertTrue contains preparationList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldGetProviderForNonTDPUsers()
focal_class.declarator: security
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private Security security;
focal_class.type: Security
focal_class.var_name: security
focal_class.file: dataprep-api/src/main/java/org/talend/dataprep/api/service/settings/views/provider/CommonViewsProvider.java
focal_class.identifier: CommonViewsProvider
focal_class.interfaces: implements AppSettingsProvider<ViewSettings>
focal_class.class_method_signature: CommonViewsProvider.getSettings()
focal_class.full_signature: @Override public List<ViewSettings> getSettings()
focal_class.identifier: getSettings
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<ViewSettings>
focal_class.signature: List<ViewSettings> getSettings()
focal_method.body: @Override
      public List<ViewSettings> getSettings() {
  
          List<ViewSettings> settings = new ArrayList<>(5);
  
          if (security.isTDPUser()) {
              settings.add(HomeViews.appHeaderBar());
              settings.add(HomeViews.sidePanel());
              settings.add(HomeViews.breadcrumb());
              settings.add(PlaygroundViews.playgroundAppHeaderBar());
          } else {
              settings.add(HomeViewsForNonTDPUsers.appHeaderBarForNonTdpUsers());
              settings.add(HomeViewsForNonTDPUsers.sidePanel());
          }
  
          settings.addAll(asList(ListViews.folderList(), ListViews.preparationList()));
  
          return settings;
  
      }
focal_method.class_method_signature: CommonViewsProvider.getSettings()
focal_method.full_signature: @Override public List<ViewSettings> getSettings()
focal_method.identifier: getSettings
focal_method.invocations: isTDPUser add appHeaderBar add sidePanel add breadcrumb add playgroundAppHeaderBar add appHeaderBarForNonTdpUsers add sidePanel addAll asList folderList preparationList
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: List<ViewSettings>
focal_method.signature: List<ViewSettings> getSettings()