Skip to content

Commit

Permalink
Removes test and import dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Weiz committed Oct 24, 2016
1 parent 631051f commit bfa6681
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions composition/composition_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"strings"
"testing"
"time"
"github.com/tarent/lib-compose/composition"
)

func Test_CompositionHandler_PositiveCase(t *testing.T) {
Expand Down Expand Up @@ -237,31 +236,6 @@ func Test_CompositionHandler_ErrorInMergingWithCache(t *testing.T) {
a.Equal(500, resp.Code)
}


func Test_LogFetchResultLoadingError(t *testing.T) {
//Prepare
ctrl := gomock.NewController(t)
defer ctrl.Finish()
contentFetcherFactory := func(r *http.Request) FetchResultSupplier {
return MockFetchResultSupplier{
&FetchResult{
Def: NewFetchDefinition("/foo"),
Content: &MemoryContent{},
Err: nil,
Hash: "hashString",
},
}
}

aggregator := NewCompositionHandler(contentFetcherFactory)
mockCompositionHandler := MockCompositionHandler()

aggregator2 := composition.NewCompositionHandler(contentFetcherFactory())
//Expect
aggregator2.ServeHTTP()
}


func Test_CompositionHandler_ErrorInFetching(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
Expand Down

0 comments on commit bfa6681

Please sign in to comment.