Error while defining parameter page directive in asp.net core

I am getting below error The constraint reference ‘ int’ could not be resolved to a type. Register the constraint type with ‘Microsoft.AspNetCore.Routing.RouteOptions.ConstraintMap’. This happens when i write below line in my cshtml page @page “{restaurantId: int}” If i try to remove int then it works. So this line works @page “{restaurantId}” Can someone explain…

Details

JMockit GregorianCalendar initialization

I need to Mock GregorianCalendar.class with JMockit so that : new GregorianCalendar() =====> new GregorianCalendar(2014,06,06); I need something like: new MockUp<GregorianCalendar>(){ @Mock public void $init () { new GregorianCalendar(2014,06,06); } }; but it’s not working and I’am not sure how to make it work. It’s throwing exception: java.lang.ExceptionInInitializerError: null at (……… new MockUp<GregorianCalendar>(){ line) (…)…

Details