excilys/gatling — pull request #496 by nire (2012-05-02 19:52:29+00:00)
Title: Rollback so that Gatling is usable again

Hi,

@slandelle I'm rollbacking a part of your last commit 8937f4709fc1bfff17ad363761a6a2b15e4c110a

It fixes this issue :

Exception in thread "main" java.lang.ClassCastException: scala.collection.mutable.WrappedArray$ofRef cannot be cast to com.excilys.ebi.gatling.http.config.HttpProtocolConfiguration
at com.excilys.ebi.gatling.http.action.HttpRequestActionBuilder$$anonfun$2.apply(HttpRequestActionBuilder.scala:59)
at com.excilys.ebi.gatling.http.action.HttpRequestActionBuilder$$anonfun$2.apply(HttpRequestActionBuilder.scala:59)
at scala.Option.map(Option.scala:133)
at com.excilys.ebi.gatling.http.action.HttpRequestActionBuilder.build(HttpRequestActionBuilder.scala:59)
at com.excilys.ebi.gatling.core.structure.AbstractStructureBuilder.buildChainedActions$1(AbstractStructureBuilder.scala:174)
at com.excilys.ebi.gatling.core.structure.AbstractStructureBuilder.buildChainedActions(AbstractStructureBuilder.scala:178)

Anyhow, your changes points out a much larger problem that I'm not really able to fix alone.
The code currently doesn't deal with the fact that we can have multiple ProtocolConfiguration for a given protocolType even though it is allowed, isn't it ?

```scala
List(
SomeScenario.scn.configure.users(10).ramp(10).protocolConfig(httpConf),
SomeOtherScenario.otherScn.configure.users(5).ramp(20).delay(30).protocolConfig(httpConf2)
)
```

Thanks
Nicolas