minor fix
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
@@ -28,10 +33,5 @@
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.springframework.ide.eclipse.core.springbuilder</name>
|
||||
<arguments>
|
||||
@@ -30,11 +35,6 @@
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
|
||||
@@ -3,7 +3,3 @@ zuul:
|
||||
foos:
|
||||
path: /foos/**
|
||||
url: http://localhost:8081/spring-zuul-foos-resource/foos
|
||||
users:
|
||||
path: /users/**
|
||||
url: http://localhost:8081/spring-zuul-users-resource/users
|
||||
|
||||
@@ -33,17 +33,6 @@ app.controller('mainCtrl', function($scope,$resource,$http) {
|
||||
$scope.foo = $scope.foos.get({fooId:$scope.foo.id});
|
||||
}
|
||||
|
||||
$scope.user = {id:0 , username:"john", age:11};
|
||||
$scope.users = $resource("/users/:userId",{userId:'@id'});
|
||||
|
||||
$scope.getUser = function(){
|
||||
$scope.user = $scope.users.get({userId:$scope.user.id});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
/*]]>*/
|
||||
</script>
|
||||
@@ -63,27 +52,6 @@ app.controller('mainCtrl', function($scope,$resource,$http) {
|
||||
<div class="col-sm-12">
|
||||
<a class="btn btn-default" href="#" ng-click="getFoo()">New Foo</a>
|
||||
</div>
|
||||
<br/><br/>
|
||||
|
||||
<h1 class="col-sm-12">User Details</h1>
|
||||
<div class="col-sm-12">
|
||||
<label class="col-sm-3">ID</label>
|
||||
<span>{{user.id}}</span>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label class="col-sm-3">Username</label>
|
||||
<span>{{user.username}}</span>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<label class="col-sm-3">Age</label>
|
||||
<span>{{user.age}}</span>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12">
|
||||
<a class="btn btn-default" href="#" ng-click="getUser()">New User</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -15,12 +15,6 @@ public class LiveTest {
|
||||
assertEquals(200, response.getStatusCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenSendRequestToUserResource_thenHeaderAdded() {
|
||||
final Response response = RestAssured.get("http://localhost:8080/users/1");
|
||||
assertEquals(200, response.getStatusCode());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenSendRequest_thenHeaderAdded() {
|
||||
final Response response = RestAssured.get("http://localhost:8080/foos/1");
|
||||
|
||||
Reference in New Issue
Block a user