@@ -554,7 +554,6 @@ public void createQuotaSummaryResponseTestNotListAllAndAllAccountTypesReturnsSin
554554
555555 for (Account .Type type : Account .Type .values ()) {
556556 Mockito .doReturn (type ).when (accountMock ).getType ();
557- Mockito .doReturn ("ROOT" ).when (quotaResponseBuilderSpy ).getDomainPathByDomainIdForDomainAdmin (accountMock );
558557
559558 Pair <List <QuotaSummaryResponse >, Integer > result = quotaResponseBuilderSpy .createQuotaSummaryResponse (cmd );
560559 Assert .assertEquals (quotaSummaryResponseMock1 , result );
@@ -650,37 +649,6 @@ public void getQuotaEmailConfigurationVoTestExistingConfiguration() {
650649 assertFalse (result .isEnabled ());
651650 }
652651
653- @ Test
654- public void getAccountIdByAccountNameTestAccountNameIsNullReturnsNull () {
655- Assert .assertNull (quotaResponseBuilderSpy .getAccountIdByAccountName (null , 1l , accountMock ));
656- }
657-
658- @ Test
659- public void getAccountIdByAccountNameTestDomainIdIsNullReturnsNull () {
660- Assert .assertNull (quotaResponseBuilderSpy .getAccountIdByAccountName ("test" , null , accountMock ));
661- }
662-
663- @ Test (expected = InvalidParameterValueException .class )
664- public void getAccountIdByAccountNameTestAccountIsNullThrowsInvalidParameterValueException () {
665- Mockito .lenient ().doNothing ().when (accountManagerMock ).checkAccess (Mockito .any (Account .class ), Mockito .any (Domain .class ));
666- Mockito .doReturn (null ).when (accountDaoMock ).findAccountIncludingRemoved (Mockito .anyString (), Mockito .anyLong ());
667-
668- quotaResponseBuilderSpy .getAccountIdByAccountName ("test" , 1l , accountMock );
669- }
670-
671- @ Test
672- public void getAccountIdByAccountNameTestAccountIsNotNullReturnsAccountId () {
673- Long expected = 61l ;
674-
675- Mockito .lenient ().doNothing ().when (accountManagerMock ).checkAccess (Mockito .any (Account .class ), Mockito .any (Domain .class ));
676- Mockito .doReturn (accountMock ).when (accountDaoMock ).findAccountIncludingRemoved (Mockito .anyString (), Mockito .anyLong ());
677- Mockito .doReturn (expected ).when (accountMock ).getAccountId ();
678-
679- Long result = quotaResponseBuilderSpy .getAccountIdByAccountName ("test" , 1l , accountMock );
680-
681- Assert .assertEquals (expected , result );
682- }
683-
684652 @ Test
685653 public void validatePositionOnCreatingNewQuotaTariffTestNullValueDoNothing () {
686654 quotaResponseBuilderSpy .validatePositionOnCreatingNewQuotaTariff (quotaTariffVoMock , null );
0 commit comments