Skip to content

Commit

Permalink
Refactor scheduler packages into org.springframework.cloud.deployer.spi
Browse files Browse the repository at this point in the history
Resolves #309
  • Loading branch information
ilayaperumalg committed Aug 30, 2019
1 parent fb0075a commit a370028
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

import java.text.ParseException;
import java.time.Duration;
Expand Down Expand Up @@ -46,17 +46,17 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import org.springframework.cloud.deployer.scheduler.spi.cloudfoundry.expression.QuartzCronExpression;
import org.springframework.cloud.deployer.scheduler.spi.core.CreateScheduleException;
import org.springframework.cloud.deployer.scheduler.spi.core.ScheduleInfo;
import org.springframework.cloud.deployer.scheduler.spi.core.ScheduleRequest;
import org.springframework.cloud.deployer.scheduler.spi.core.Scheduler;
import org.springframework.cloud.deployer.scheduler.spi.core.SchedulerException;
import org.springframework.cloud.deployer.scheduler.spi.core.SchedulerPropertyKeys;
import org.springframework.cloud.deployer.scheduler.spi.core.UnScheduleException;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryTaskLauncher;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryConnectionProperties;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryTaskLauncher;
import org.springframework.cloud.deployer.spi.core.AppDeploymentRequest;
import org.springframework.cloud.deployer.spi.scheduler.CreateScheduleException;
import org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo;
import org.springframework.cloud.deployer.spi.scheduler.ScheduleRequest;
import org.springframework.cloud.deployer.spi.scheduler.Scheduler;
import org.springframework.cloud.deployer.spi.scheduler.SchedulerException;
import org.springframework.cloud.deployer.spi.scheduler.SchedulerPropertyKeys;
import org.springframework.cloud.deployer.spi.scheduler.UnScheduleException;
import org.springframework.cloud.deployer.spi.scheduler.cloudfoundry.expression.QuartzCronExpression;
import org.springframework.retry.RecoveryCallback;
import org.springframework.retry.RetryCallback;
import org.springframework.retry.RetryContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

/**
* A {@link RuntimeException} that wraps SSL based exceptions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

import javax.validation.constraints.NotNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry.expression;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry.expression;

import java.text.ParseException;
import java.util.Calendar;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -67,22 +67,22 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import org.springframework.cloud.deployer.scheduler.spi.core.CreateScheduleException;
import org.springframework.cloud.deployer.scheduler.spi.core.ScheduleInfo;
import org.springframework.cloud.deployer.scheduler.spi.core.ScheduleRequest;
import org.springframework.cloud.deployer.scheduler.spi.core.SchedulerException;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryConnectionProperties;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryTaskLauncher;
import org.springframework.cloud.deployer.spi.core.AppDefinition;
import org.springframework.cloud.deployer.spi.core.AppDeploymentRequest;
import org.springframework.cloud.deployer.spi.scheduler.CreateScheduleException;
import org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo;
import org.springframework.cloud.deployer.spi.scheduler.ScheduleRequest;
import org.springframework.cloud.deployer.spi.scheduler.SchedulerException;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.verify;
import static org.springframework.cloud.deployer.scheduler.spi.core.SchedulerPropertyKeys.CRON_EXPRESSION;
import static org.springframework.cloud.deployer.spi.scheduler.SchedulerPropertyKeys.CRON_EXPRESSION;

/**
* Test the core features of the Spring Cloud Scheduler implementation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry;

import java.util.Collections;
import java.util.List;
Expand All @@ -38,12 +38,12 @@
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.deployer.CloudFoundryTestSupport;
import org.springframework.cloud.deployer.resource.maven.MavenProperties;
import org.springframework.cloud.deployer.scheduler.spi.core.Scheduler;
import org.springframework.cloud.deployer.scheduler.spi.core.SchedulerPropertyKeys;
import org.springframework.cloud.deployer.scheduler.spi.test.AbstractSchedulerIntegrationTests;
import org.springframework.cloud.deployer.spi.scheduler.test.AbstractSchedulerIntegrationTests;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryConnectionProperties;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryDeploymentProperties;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryTaskLauncher;
import org.springframework.cloud.deployer.spi.scheduler.Scheduler;
import org.springframework.cloud.deployer.spi.scheduler.SchedulerPropertyKeys;
import org.springframework.cloud.deployer.spi.task.TaskLauncher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
* limitations under the License.
*/

package org.springframework.cloud.deployer.scheduler.spi.cloudfoundry.expression;
package org.springframework.cloud.deployer.spi.scheduler.cloudfoundry.expression;

import java.text.ParseException;

import junit.framework.TestCase;

import org.springframework.cloud.deployer.spi.scheduler.cloudfoundry.expression.QuartzCronExpression;

public class QuartzCronExpressionTests extends TestCase {

/*
Expand Down

0 comments on commit a370028

Please sign in to comment.