// Path: src/test/java/com/orange/clara/cloud/servicedbdumper/fake/dbdumper/mocked/DeleterMock.java
// public class DeleterMock implements Deleter {
// 
//     private Integer numberCallDelete = 0;
// 
//     public Integer getNumberCallDelete() {
//         return numberCallDelete;
//     }
// 
//     public void resetNumberCallDelete() {
//         numberCallDelete = 0;
//     }
// 
//     @Override
//     public void deleteAll(DbDumperServiceInstance dbDumperServiceInstance) {
//         for (DatabaseDumpFile databaseDumpFile : dbDumperServiceInstance.getDatabaseDumpFiles()) {
//             this.delete(databaseDumpFile);
//         }
//     }
// 
//     @Override
//     public void delete(DatabaseDumpFile databaseDumpFile) {
//         numberCallDelete++;
//     }
// }


import com.orange.clara.cloud.servicedbdumper.dbdumper.Deleter;
import com.orange.clara.cloud.servicedbdumper.fake.dbdumper.mocked.DeleterMock;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
package com.orange.clara.cloud.servicedbdumper.fake.configuration;


/**
 * Copyright (C) 2016 Orange
 * <p>
 * This software is distributed under the terms and conditions of the 'Apache-2.0'
 * license which can be found in the file 'LICENSE' in this package distribution
 * or at 'https://opensource.org/licenses/Apache-2.0'.
 * <p>
 * Author: Arthur Halet
 * Date: 24/03/2016
 */
@Configuration
@Profile("test-controller")
public class DbDumperConfigContextMock {
    @Bean
    public Deleter deleter() {
// Path: src/test/java/com/orange/clara/cloud/servicedbdumper/fake/dbdumper/mocked/DeleterMock.java
// public class DeleterMock implements Deleter {
// 
//     private Integer numberCallDelete = 0;
// 
//     public Integer getNumberCallDelete() {
//         return numberCallDelete;
//     }
// 
//     public void resetNumberCallDelete() {
//         numberCallDelete = 0;
//     }
// 
//     @Override
//     public void deleteAll(DbDumperServiceInstance dbDumperServiceInstance) {
//         for (DatabaseDumpFile databaseDumpFile : dbDumperServiceInstance.getDatabaseDumpFiles()) {
//             this.delete(databaseDumpFile);
//         }
//     }
// 
//     @Override
//     public void delete(DatabaseDumpFile databaseDumpFile) {
//         numberCallDelete++;
//     }
// }


// Path: src/test/java/com/orange/clara/cloud/servicedbdumper/fake/configuration/DbDumperConfigContextMock.java
import com.orange.clara.cloud.servicedbdumper.dbdumper.Deleter;
import com.orange.clara.cloud.servicedbdumper.fake.dbdumper.mocked.DeleterMock;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

package com.orange.clara.cloud.servicedbdumper.fake.configuration;


/**
 * Copyright (C) 2016 Orange
 * <p>
 * This software is distributed under the terms and conditions of the 'Apache-2.0'
 * license which can be found in the file 'LICENSE' in this package distribution
 * or at 'https://opensource.org/licenses/Apache-2.0'.
 * <p>
 * Author: Arthur Halet
 * Date: 24/03/2016
 */
@Configuration
@Profile("test-controller")
public class DbDumperConfigContextMock {
    @Bean
    public Deleter deleter() {
        return new DeleterMock();