New Zealand has won the first cricket test against Sri Lanka in Dunedin by 122 runs.
Needing 405 to win, Sri Lanka started the final day at 109 for three and lost wickets at regular intervals to be all out for 282.
Sri Lanka's batsmen had looked comfortable in the first session before captain Angelo Mathews failed to play a shot and was bowled for 25 by Wagner.
Top scorer Dinesh Chandimal also failed to play a shot to a Santner delivery and was trapped lbw for 58.
Chandimal, who scored 83 in Sri Lanka's first innings, called for a review but the technology showed the delivery would have hit off-stump.
The pair, who had put on 56 runs, were both dismissed with the score on 165.
Sri Lanka went to lunch six wickets down and the only real resistance from the tail came from Suranga Lakmal who made 23 off 27 deliveries.
Bowling for the Black Caps Tim Southee finished with figures of 3-52 while fellow pace bowlers Trent Boult and Neil Wagner took two each along with spinner Mitchell Santner.
Doug Bracewell picked up the other wicket.
The second test in the two match series starts in Hamilton on Friday.
The Black Caps captain Brendon McCullum described his side's performance as a "professional display."
"But we had to work pretty hard...to get 20 wickets when you don't bowl first on a wicket like that was always going to be tough but I think the bowlers did an outstanding job and obviously the guys batted well too (openers Martin Guptill and Tom Latham both scored centuries) so overall a really professional performance and one we are really pleased with."
McCullum felt the win was built on their first innings effort where they were able to score relatively quickly.
"The way Martin Guptill and Tom Latham started ...they played exceptionally well and hit the ball down the ground ...and we got off a four runs an over to start on the first morning of a test match which is not easy to do."
"We gathered momentum from there and to be able to put on 400 on the first day, yeah we probably lost a couple more wickets than we would have liked but what it did was advance the game and we know that when we play on a surface like University Oval you've got to be able to advance the game," McCullum said.
Martin Guptill was named player of the match.
The second test starts in Hamilton on Friday.
Here's how the match unfolded:
Due to changes to our website, the re-cap of this game is no longer available. We’re sorry for any inconvenience.