input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testMaakMutatieBericht ( ) { final nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst persoonslijst = nl . bzk . brp . domain . leveringmodel . helper . TestBuilders . maakPersoonMetHandelingen ( 1 ) ; final nl . bzk . algemeenbrp . dal . domein . brp . enums . SoortDienst soortDienst = nl . bzk . algeme... | org . junit . Assert . assertFalse ( verwerkPersoonBerichten . isEmpty ( ) ) |
testReadBooleanYes ( ) { write ( "yes" ) ; "<AssertPlaceHolder>" ; } readBoolean ( ) { return org . kocakosm . pitaya . util . Booleans . valueOf ( org . kocakosm . pitaya . io . Scanf . readString ( ) ) ; } | org . junit . Assert . assertEquals ( true , org . kocakosm . pitaya . io . Scanf . readBoolean ( ) ) |
blankIsNotLoaded ( ) { java . util . prefs . Preferences node = java . util . prefs . Preferences . userRoot ( ) . node ( org . pdfsam . ui . PreferencesRecentWorkspacesService . WORKSPACES_PATH ) ; node . put ( "1" , org . apache . commons . lang3 . StringUtils . EMPTY ) ; node . flush ( ) ; org . pdfsam . ui . Prefer... | org . junit . Assert . assertEquals ( 0 , newVictim . getRecentlyUsedWorkspaces ( ) . size ( ) ) |
testCreateUserFromBuilderBasedOnExistingUser ( ) { com . streamreduce . core . model . User original = new com . streamreduce . core . model . User . Builder ( ) . username ( "maynard_keenan" ) . alias ( "maynard" ) . fullname ( "Maynard<sp>James<sp>Keenan" ) . roles ( com . google . common . collect . Sets . newHashSe... | org . junit . Assert . assertEquals ( original , copy ) |
maakBerichtenGeenLo3FilterRubrieken ( ) { final nl . bzk . brp . service . mutatielevering . dto . Mutatielevering mutatieLevering = maakMutatieLevering ( Stelsel . GBA ) ; final nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst persoonslijst = mutatieLevering . getPersonen ( ) . iterator ( ) . next ( )... | org . junit . Assert . assertEquals ( 0 , mutatieBerichten . size ( ) ) |
getAccessLevelForCollaboratorAsAdministrator ( ) { org . phenotips . data . Patient p = mock ( org . phenotips . data . Patient . class ) ; org . phenotips . data . permissions . internal . EntityAccessHelper helper = mock ( org . phenotips . data . permissions . internal . EntityAccessHelper . class ) ; org . phenotip... | org . junit . Assert . assertSame ( edit , pa . getAccessLevel ( org . phenotips . data . permissions . internal . DefaultPatientAccessTest . COLLABORATOR ) ) |
testGetOutUserPeriodAsInt ( ) { System . out . println ( "getOutUserPeriodAsInt" ) ; kg . apc . jmeter . threads . SteppingThreadGroup instance = new kg . apc . jmeter . threads . SteppingThreadGroup ( ) ; int expResult = 0 ; int result = instance . getOutUserPeriodAsInt ( ) ; "<AssertPlaceHolder>" ; } getOutUserPeriod... | org . junit . Assert . assertEquals ( expResult , result ) |
testCacheDoesNotCleanNewValues ( ) { io . joynr . qos . QualityOfService qos = new io . joynr . qos . QualityOfService ( ) ; qos . setCacheTimeToLiveMs ( 500 ) ; fixture . setQoS ( qos ) ; fixture . insert ( attributeId , Boolean . TRUE ) ; fixture . cleanUp ( ) ; "<AssertPlaceHolder>" ; } lookUp ( java . lang . String... | org . junit . Assert . assertEquals ( Boolean . TRUE , fixture . lookUp ( attributeId ) ) |
getJobLog_should_throw_exception_when_not_exist ( ) { final long jobLogId = 455 ; doReturn ( null ) . when ( readPersistenceService ) . selectById ( org . bonitasoft . engine . scheduler . recorder . SelectDescriptorBuilder . getElementById ( org . bonitasoft . engine . scheduler . model . SJobLog . class , "SJobLog" ,... | org . junit . Assert . assertNull ( jobLog ) |
getKeys ( ) { chain . getKey ( KeyChain . KeyPurpose . RECEIVE_FUNDS ) ; chain . getKey ( KeyChain . KeyPurpose . CHANGE ) ; chain . maybeLookAhead ( ) ; "<AssertPlaceHolder>" ; } getKeys ( org . bitcoinj . wallet . KeyPurpose , int ) { checkArgument ( ( numberOfKeys > 0 ) ) ; lock . lock ( ) ; try { if ( ( hashToKeys ... | org . junit . Assert . assertEquals ( 2 , chain . getKeys ( false , false ) . size ( ) ) |
downloadOnePOMFromSingleRepository ( ) { final java . lang . String content = "This<sp>is<sp>a<sp>test" ; final java . lang . String path = "/org/apache/maven/maven-model/3.0.3/maven-model-3.0.3.pom" ; final org . commonjava . indy . model . core . RemoteRepository repo = new org . commonjava . indy . model . core . Re... | org . junit . Assert . assertThat ( downloaded , org . hamcrest . CoreMatchers . equalTo ( content ) ) |
testRunScriptInGuest ( ) { com . vmware . thinapp . workpool . VmRunCommandBuilder v = new com . vmware . thinapp . workpool . VmRunCommandBuilder ( com . vmware . thinapp . workpool . WorkpoolStub . vcInfo , com . vmware . thinapp . workpool . WorkpoolStub . vmInfo ) ; java . util . List < java . lang . String > expec... | org . junit . Assert . assertEquals ( expected , cmd ) |
shouldNotifyOnLink ( ) { diskCacheV111 . util . PnfsId parentId = new diskCacheV111 . util . PnfsId ( "000000000000000000000000000000000001" ) ; org . dcache . nfs . vfs . Inode parent = anInode ( ) . withId ( 1L ) . withPnfsId ( parentId ) . build ( ) ; org . dcache . nfs . vfs . Inode existingFile = anInode ( ) . wit... | org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( newLink ) ) ) |
getHiveConf ( ) { "<AssertPlaceHolder>" ; } getHiveConf ( ) { org . junit . Assert . assertThat ( source . getHiveConf ( ) , org . hamcrest . CoreMatchers . is ( hiveConf ) ) ; } | org . junit . Assert . assertThat ( source . getHiveConf ( ) , org . hamcrest . CoreMatchers . is ( hiveConf ) ) |
getMessageLockTimeoutSecsReturnsConstant ( ) { final java . lang . String iotHubHostname = "test.iothubhostname" ; final java . lang . String deviceId = "test-deviceid" ; final java . lang . String deviceKey = "test-devicekey" ; final java . lang . String sharedAccessToken = null ; final tests . unit . com . microsoft ... | org . junit . Assert . assertThat ( testMessageLockTimeoutSecs , org . hamcrest . CoreMatchers . is ( expectedMessageLockTimeoutSecs ) ) |
testFindSubmittedOcanFormsByAssessmentId ( ) { int assessmentId1 = 100 ; int assessmentId2 = 200 ; int submissionId1 = 1 ; int submissionId2 = 0 ; org . oscarehr . common . model . OcanStaffForm ocanStaffForm1 = new org . oscarehr . common . model . OcanStaffForm ( ) ; org . oscarehr . common . dao . utils . EntityData... | org . junit . Assert . assertTrue ( true ) |
shouldSendToEndpointWhenFixed ( ) { com . couchbase . client . core . service . EndpointFactoryMock ef = com . couchbase . client . core . service . EndpointFactoryMock . simple ( com . couchbase . client . core . service . PooledServiceTest . envCtx ) ; com . couchbase . client . core . service . strategies . Selectio... | org . junit . Assert . assertEquals ( 1 , ef . endpointSendCalled ( ) ) |
shouldBeFalseWhenThisContextIsNotForeground ( ) { createRunningAppProcessInfo ( 3 ) ; boolean foreground = com . navercorp . utilset . ui . ActivityUtils . isContextForeground ( context ) ; "<AssertPlaceHolder>" ; } isContextForeground ( android . content . Context ) { android . app . ActivityManager activityManager = ... | org . junit . Assert . assertThat ( foreground , org . hamcrest . CoreMatchers . is ( false ) ) |
testEndpointEnableCountingFromOptional ( ) { com . hp . hpl . jena . rdf . model . Model m = com . epimorphics . jsonrdf . utils . ModelIOUtils . modelFromTurtle ( ":my<sp>a<sp>api:API;<sp>elda:enableCounting<sp>'optional';<sp>api:sparqlEndpoint<sp>:spoo;<sp>api:endpoint<sp>:ep.<sp>:ep<sp>a<sp>api:ListEndpoint;<sp>api:... | org . junit . Assert . assertNull ( e . getEnableCounting ( ) ) |
test_collectionTypeTypes_valid ( ) { org . joda . beans . MetaProperty < java . util . List < java . util . List < org . joda . beans . sample . Address > > > test = org . joda . beans . sample . Person . meta ( ) . addressesList ( ) ; java . util . List < java . lang . Class < ? > > expected = com . google . common . ... | org . junit . Assert . assertEquals ( org . joda . beans . JodaBeanUtils . collectionTypeTypes ( test , org . joda . beans . sample . Person . class ) , expected ) |
testGetID ( ) { org . openscience . cdk . interfaces . IChemObject chemObject = newChemObject ( ) ; "<AssertPlaceHolder>" ; } getID ( ) { return this . identifier ; } | org . junit . Assert . assertNull ( chemObject . getID ( ) ) |
testDateMinusDatePositiveValues ( ) { java . lang . String sqlText = "values<sp>date('2011-12-26')<sp>-<sp>date('2011-06-05')" ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . execute . operations . SimpleDateArithmeticIT . spliceClassWatcher . executeQuery ( sqlText ) ; java . lang . String exp... | org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) ) |
testClusteringAvgLink ( ) { com . apporiented . algorithm . clustering . ClusteringAlgorithm alg = new com . apporiented . algorithm . clustering . DefaultClusteringAlgorithm ( ) ; com . apporiented . algorithm . clustering . Cluster c = alg . performClustering ( distances , names , new com . apporiented . algorithm . ... | org . junit . Assert . assertNotNull ( c ) |
zoomLevelShouldBeTargetLevelWhenExtenderZooms ( ) { float targetLevel = 7.0F ; float zoomX = 0.0F ; float zoomY = 0.0F ; android . widget . ImageView imageView = new android . widget . ImageView ( org . robolectric . Robolectric . application ) ; imageView . setImageBitmap ( com . navercorp . volleyextensions . view . ... | org . junit . Assert . assertTrue ( ( ( extender . getZoomLevel ( ) ) == targetLevel ) ) |
hasUriAndMethod_shouldFailMethod ( ) { boolean result = com . spotify . apollo . test . unit . RouteMatchers . hasUriAndMethod ( "PUT" , "/path" ) . matches ( com . spotify . apollo . test . unit . RouteMatchersTest . TEST_ROUTE ) ; "<AssertPlaceHolder>" ; } hasUriAndMethod ( java . lang . String , java . lang . String... | org . junit . Assert . assertFalse ( result ) |
testMath ( ) { org . opennms . netmgt . config . threshd . Expression exp = new org . opennms . netmgt . config . threshd . Expression ( ) ; exp . setExpression ( "math.max(data,<sp>5)" ) ; wrapper = new org . opennms . netmgt . threshd . ExpressionConfigWrapper ( exp ) ; java . util . Map < java . lang . String , java... | org . junit . Assert . assertTrue ( ( 10.0 == ( wrapper . evaluate ( values ) ) ) ) |
testDeleteTemplate ( ) { com . liferay . dynamic . data . mapping . model . DDMTemplate template = addDisplayTemplate ( com . liferay . dynamic . data . mapping . service . test . DDMTemplateLocalServiceTest . _classNameId , 0 , "Test<sp>Template" , WorkflowConstants . STATUS_APPROVED ) ; com . liferay . dynamic . data... | org . junit . Assert . assertNull ( com . liferay . dynamic . data . mapping . service . DDMTemplateLocalServiceUtil . fetchDDMTemplate ( template . getTemplateId ( ) ) ) |
whenModTwoIntegerValues_shouldModThemAndReturnTheResult ( ) { int result = com . google . common . math . IntMath . mod ( 30 , 4 ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 2 , result ) |
testSetTon ( ) { for ( byte ton : org . smpp . pdu . AddressTest . TONS ) { address . setTon ( ton ) ; "<AssertPlaceHolder>" ; } } getTon ( ) { return ton ; } | org . junit . Assert . assertEquals ( ton , address . getTon ( ) ) |
testGetLabelResource ( ) { System . out . println ( "getLabelResource" ) ; kg . apc . jmeter . vizualizers . ResponseTimesOverTimeGui instance = new kg . apc . jmeter . vizualizers . ResponseTimesOverTimeGui ( ) ; java . lang . String expResult = "ResponseTimesOverTimeGui" ; java . lang . String result = instance . get... | org . junit . Assert . assertEquals ( expResult , result ) |
testRegistrationOfExecutionsCanceled ( ) { try { final org . apache . flink . runtime . jobgraph . JobVertexID jid1 = new org . apache . flink . runtime . jobgraph . JobVertexID ( ) ; final org . apache . flink . runtime . jobgraph . JobVertexID jid2 = new org . apache . flink . runtime . jobgraph . JobVertexID ( ) ; o... | org . junit . Assert . assertEquals ( 0 , executions . size ( ) ) |
testInvalidFileReference ( ) { com . adobe . cq . wcm . core . components . models . Teaser teaser = getTeaserUnderTest ( com . adobe . cq . wcm . core . components . internal . models . v1 . TeaserImplTest . TEASER_2 ) ; verify ( teaserLogger ) . error ( "Asset<sp>/content/dam/core/images/Adobe_Systems_logo_and_wordma... | org . junit . Assert . assertNull ( teaser . getImageResource ( ) ) |
booleanPropertyHasCorrectDefaultValue ( ) { java . lang . Object instance = org . jsonschema2pojo . integration . DefaultIT . classWithDefaults . newInstance ( ) ; java . lang . reflect . Method getter = org . jsonschema2pojo . integration . DefaultIT . classWithDefaults . getMethod ( "getBooleanWithDefault" ) ; "<Asse... | org . junit . Assert . assertThat ( ( ( java . lang . Boolean ) ( getter . invoke ( instance ) ) ) , is ( equalTo ( true ) ) ) |
testCheckInt_Ok ( ) { int i = net . sf . qualitycheck . NumberInRange . checkInteger ( java . lang . Integer . valueOf ( ( ( int ) ( 4 ) ) ) ) ; "<AssertPlaceHolder>" ; } checkInteger ( java . lang . Number ) { net . sf . qualitycheck . Check . notNull ( number , "number" ) ; if ( ! ( net . sf . qualitycheck . NumberIn... | org . junit . Assert . assertEquals ( 4 , i ) |
testResizeListener ( ) { tree = new org . eclipse . swt . widgets . Tree ( shell , ( ( org . eclipse . swt . SWT . VIRTUAL ) | ( org . eclipse . swt . SWT . BORDER ) ) ) ; final java . util . List < org . eclipse . swt . events . ControlEvent > log = new java . util . ArrayList < org . eclipse . swt . events . ControlE... | org . junit . Assert . assertEquals ( 1 , log . size ( ) ) |
test_apply ( ) { org . jerlang . type . List params = org . jerlang . type . List . of ( org . jerlang . erts . emulator . op . ApplyLastTest . apply_last ) ; org . jerlang . type . Term result = org . jerlang . erts . Erlang . apply ( org . jerlang . erts . emulator . op . ApplyLastTest . apply_last , org . jerlang . ... | org . junit . Assert . assertEquals ( org . jerlang . erts . emulator . op . ApplyLastTest . apply_last , result ) |
acceptAndConnectSuccess ( ) { java . lang . String script = "#<sp>Accept<sp>script\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "#comment<sp>#5\n" 0 + "\t#comment<sp>#1\n" ) + "accepted\n" ) + "#comment<sp>#2\n" ) + "#comment<sp>#5\n" 1 ) + "#comment<sp>#3\n" ) + "close\n" ) + "#comment<sp>#4\n" ) + "closed\n" ) + "#... | org . junit . Assert . assertEquals ( script , observedScript ) |
testSimpleKeypointCorrespondence ( ) { final java . util . List < org . openimaj . image . feature . local . keypoints . Keypoint > original = new java . util . ArrayList < org . openimaj . image . feature . local . keypoints . Keypoint > ( ) ; final Jama . Matrix transform = Jama . Matrix . constructWithCopy ( new dou... | org . junit . Assert . assertTrue ( ( result == 2 ) ) |
shouldExportDisjunctionQueryWithInnerBoost ( ) { com . couchbase . client . java . search . queries . PrefixQuery inner = com . couchbase . client . java . search . SearchQuery . prefix ( "someterm" ) . boost ( 2 ) ; com . couchbase . client . java . search . queries . DisjunctionQuery fts = com . couchbase . client . ... | org . junit . Assert . assertEquals ( expected , query . export ( ) ) |
naphthaleneSize ( ) { org . openscience . cdk . graph . TripletShortCycles esssr = new org . openscience . cdk . graph . TripletShortCycles ( new org . openscience . cdk . graph . MinimumCycleBasis ( org . openscience . cdk . graph . InitialCyclesTest . naphthalene ( ) ) , false ) ; "<AssertPlaceHolder>" ; } size ( ) {... | org . junit . Assert . assertThat ( esssr . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) ) |
nomangle ( ) { java . lang . String statement = "function<sp>x(longvarname){console.log(longvarname)}" ; java . lang . String rsp = new org . jooby . assets . Uglify ( ) . set ( org . jooby . assets . UglifyTest . engineFactory ) . set ( "mangle" , null ) . process ( "/test.js" , statement , com . typesafe . config . C... | org . junit . Assert . assertEquals ( statement , rsp ) |
getCreateTime ( ) { "<AssertPlaceHolder>" ; } getCreateTime ( ) { return createTime ; } | org . junit . Assert . assertTrue ( ( ( header . getCreateTime ( ) ) > 0 ) ) |
testCachedStatementPretendsToClose ( ) { bitronix . tm . resource . jdbc . LruStatementCache . CacheKey key = new bitronix . tm . resource . jdbc . LruStatementCache . CacheKey ( "SELECT<sp>*<sp>FROM<sp>DUAL" ) ; java . sql . PreparedStatement proxy = JdbcProxyFactory . INSTANCE . getProxyPreparedStatement ( connection... | org . junit . Assert . assertTrue ( proxy . isClosed ( ) ) |
testMultipleReturnable ( ) { org . teiid . query . metadata . TransformationMetadata metadata = org . teiid . query . unittest . RealMetadataFactory . example1 ( ) ; addProc ( metadata , "sq2" , ( "CREATE<sp>VIRTUAL<sp>PROCEDURE<sp>BEGIN\n" + "SELECT<sp>e1,<sp>e2<sp>FROM<sp>pm1.g1;<sp>select<sp>e1,<sp>e2<sp>from<sp>pm1... | org . junit . Assert . assertEquals ( 6 , dataMgr . getCommandHistory ( ) . size ( ) ) |
testSparql ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . Graph . create ( ) ; java . lang . String q = "select<sp>(kg:sparql('select<sp>*<sp>(sum(?i)<sp>as<sp>?sum)<sp>where<sp>{<sp>values<sp>?i<sp>{<sp>unnest(xt:iota(5))}<sp>}')<sp>as<sp>?res)<sp>" + "where<sp>{}" ; fr . inria . corese . co... | org . junit . Assert . assertEquals ( 15 , sum . intValue ( ) ) |
shouldCompareReturnMinusOneIfTheSecondSolutionIsNull ( ) { comparator = new org . uma . jmetal . util . comparator . ObjectiveComparator < org . uma . jmetal . solution . Solution < ? > > ( 0 ) ; org . uma . jmetal . solution . Solution < ? > solution1 = mock ( org . uma . jmetal . solution . Solution . class ) ; "<Ass... | org . junit . Assert . assertEquals ( ( - 1 ) , comparator . compare ( solution1 , null ) ) |
testPreparedStatementSqlInsert2 ( ) { java . lang . String sqlStatement = "INSERT<sp>INTO<sp>jdbcDriverTest<sp>" + ( ( "(name,<sp>age,<sp>joined,<sp>weight,<sp>active)<sp>" + "VALUES<sp>" ) + "('Julie',<sp>44,<sp>'2016-06-06<sp>22:30:00',<sp>132.5,<sp>true);" ) ; com . basho . riakts . jdbc . PreparedStatement statemen... | org . junit . Assert . assertTrue ( ( result == 0 ) ) |
testGetValue ( ) { final java . lang . String expectedValue = "expression" ; when ( view . getExpressionValue ( ) ) . thenReturn ( expectedValue ) ; final java . lang . String actualValue = constraintExpression . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return rootPath ; } | org . junit . Assert . assertEquals ( expectedValue , actualValue ) |
testRegisterNull ( ) { "<AssertPlaceHolder>" ; } register ( T ) { checkCategory ( pProvider ) ; if ( ! ( contains ( pProvider ) ) ) { providers . put ( pProvider . getClass ( ) , pProvider ) ; processRegistration ( pProvider ) ; return true ; } return false ; } | org . junit . Assert . assertFalse ( registry . register ( null ) ) |
testJDK7 ( ) { net . sourceforge . cobertura . jdk . JDKTest . setupAndExecuteTest ( "1.7" ) ; int hitCount = net . sourceforge . cobertura . test . util . TestUtils . getTotalHitCount ( net . sourceforge . cobertura . jdk . JDKTest . dom , "mypackage.JDKTEST" , "main" ) ; "<AssertPlaceHolder>" ; } getTotalHitCount ( g... | org . junit . Assert . assertEquals ( 2 , hitCount ) |
testPcStable2 ( ) { edu . cmu . tetrad . test . RandomUtil . getInstance ( ) . setSeed ( 1450030184196L ) ; edu . cmu . tetrad . test . List < edu . cmu . tetrad . test . Node > nodes = new edu . cmu . tetrad . test . ArrayList ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { nodes . add ( new edu . cmu . tetrad . test . Cont... | org . junit . Assert . assertTrue ( pattern . equals ( pattern2 ) ) |
testFolderAddShouldReturnExistingFolderIfDuplicateName ( ) { java . lang . String name = com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) ; "<AssertPlaceHolder>" ; } _addPortletFolder ( java . lang . String ) { return com . liferay . portal . kernel . portletfilerepository . PortletFile... | org . junit . Assert . assertEquals ( _addPortletFolder ( name ) , _addPortletFolder ( name ) ) |
testGetAcceleratorKey_Gets_Value_From_Element ( ) { when ( element . getAcceleratorKey ( ) ) . thenReturn ( "KEY" ) ; mmarquee . automation . uiautomation . IUIAutomation mocked_automation = org . mockito . Mockito . mock ( mmarquee . automation . uiautomation . IUIAutomation . class ) ; mmarquee . automation . UIAutom... | org . junit . Assert . assertTrue ( value . equals ( "KEY" ) ) |
getParametricDateFieldsWithNeverShowList ( ) { final java . util . Map < com . hp . autonomy . types . requests . idol . actions . tags . params . FieldTypeParam , java . util . Set < com . hp . autonomy . types . requests . idol . actions . tags . TagName > > response = new java . util . EnumMap ( com . hp . autonomy ... | org . junit . Assert . assertThat ( output , is ( com . hp . autonomy . frontend . find . core . fields . AbstractFieldsControllerTest . empty ( ) ) ) |
testReaderIsLoaded ( ) { int readerCount = 0 ; org . esa . snap . core . dataio . ProductIOPlugInManager plugInManager = org . esa . snap . core . dataio . ProductIOPlugInManager . getInstance ( ) ; java . util . Iterator readerPlugIns = plugInManager . getReaderPlugIns ( "L3_ENV_MER" ) ; while ( readerPlugIns . hasNex... | org . junit . Assert . assertEquals ( 1 , readerCount ) |
testApply ( ) { net . maritimecloud . identityregistry . model . database . Organization org = new net . maritimecloud . identityregistry . model . database . Organization ( ) ; org . setMrn ( "urn:mrn:mcl:org:dma" ) ; org . setAddress ( "Carl<sp>Jakobsensvej<sp>31,<sp>2500<sp>Valby" ) ; org . setCountry ( "Denmark" ) ... | org . junit . Assert . assertTrue ( false ) |
getFullName ( ) { "<AssertPlaceHolder>" ; } getFullName ( ) { org . junit . Assert . assertEquals ( "com.myproject.domain.VwServiceName" , classModel . getFullName ( ) ) ; } | org . junit . Assert . assertEquals ( "com.myproject.domain.VwServiceName" , classModel . getFullName ( ) ) |
shipmentViolationAtAct6_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; jsprit . core . reporting . SolutionPrinter . print ( vrp , solution , SolutionPrinter . Print . VERBOSE ) ; jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analysis . SolutionA... | org . junit . Assert . assertFalse ( violation ) |
multi ( ) { biweekly . io . json . JCalValue value = biweekly . io . json . JCalValue . multi ( "value" , 42 , false , null ) ; java . util . List < biweekly . io . json . JsonValue > expected = java . util . Arrays . asList ( new biweekly . io . json . JsonValue ( "value" ) , new biweekly . io . json . JsonValue ( 42 ... | org . junit . Assert . assertEquals ( expected , actual ) |
testPromoteBigIntegerAndBigDecimalResultsInBigDecimalType ( ) { "<AssertPlaceHolder>" ; } promote ( com . redhat . lightblue . metadata . Type , com . redhat . lightblue . metadata . Type ) { if ( ( ( operand1 instanceof com . redhat . lightblue . metadata . types . BigIntegerType ) && ( operand2 instanceof com . redha... | org . junit . Assert . assertEquals ( BigDecimalType . TYPE , com . redhat . lightblue . metadata . types . Arith . promote ( DoubleType . TYPE , BigIntegerType . TYPE ) ) |
test_no_differences ( ) { final org . apache . commons . lang3 . builder . ReflectionDiffBuilderTest . TypeTestClass firstObject = new org . apache . commons . lang3 . builder . ReflectionDiffBuilderTest . TypeTestClass ( ) ; final org . apache . commons . lang3 . builder . ReflectionDiffBuilderTest . TypeTestClass sec... | org . junit . Assert . assertEquals ( 0 , list . getNumberOfDiffs ( ) ) |
testEscapedQuote ( ) { java . lang . String templates = "setTest(ranges)<sp>::=<sp>\"<ranges;<sp>separator=\\\"||\\\">\"" + ( org . stringtemplate . v4 . misc . Misc . newline ) ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroupFile ( ( ( (... | org . junit . Assert . assertEquals ( expected , result ) |
testSymLink ( ) { boolean mayExit = false ; org . apache . hadoop . mapred . MiniMRCluster mr = null ; org . apache . hadoop . hdfs . MiniDFSCluster dfs = null ; try { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; dfs = new org . apache . hadoop . hdfs . Mini... | org . junit . Assert . assertEquals ( ( ( cacheString ) + "-Dbuild.test=" 2 ) , line ) |
testValidationPass ( ) { org . apache . hadoop . tools . mapred . TestCopyCommitter . config . setLong ( DistCpConstants . CONF_LABEL_TOTAL_BYTES_TO_BE_COPIED , 100 ) ; org . apache . hadoop . tools . mapred . Counters counters = new org . apache . hadoop . tools . mapred . Counters ( ) ; org . apache . hadoop . tools ... | org . junit . Assert . assertEquals ( taskAttemptContext . getStatus ( ) , "Commit<sp>Successful" ) |
testGetVMUsedHeap ( ) { "<AssertPlaceHolder>" ; } getVMUsedHeap ( ) { java . lang . Runtime runtime = java . lang . Runtime . getRuntime ( ) ; return ( runtime . totalMemory ( ) ) - ( runtime . freeMemory ( ) ) ; } | org . junit . Assert . assertTrue ( ( ( instance . getVMUsedHeap ( ) ) > 1000 ) ) |
testKeys ( ) { K key1 = keyFactory . instance ( ) ; V value1 = valueFactory . instance ( ) ; org . junit . Assume . assumeTrue ( ( ( key1 instanceof java . lang . String ) || ( key1 instanceof byte [ ] ) ) ) ; redisTemplate . opsForValue ( ) . set ( key1 , value1 ) ; K keyPattern = ( key1 instanceof java . lang . Strin... | org . junit . Assert . assertNotNull ( redisTemplate . keys ( keyPattern ) ) |
emptyExpression ( ) { com . airhacks . enhydrator . in . Row row = new com . airhacks . enhydrator . in . Row ( ) ; row . addColumn ( ( - 1 ) , "chief" , "duke" ) ; com . airhacks . enhydrator . in . Row result = this . cut . execute ( row , "" ) ; "<AssertPlaceHolder>" ; } execute ( com . airhacks . enhydrator . in . ... | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( row ) ) |
testGetParametersWithDefaultEntityAndDisabledSecurity ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . person . award . PersonAward entity = new org . lnu . is . domain . person . award . PersonAward ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashM... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldCreateAStoreUsingGraphIdIfItIsEqualToTableName ( ) { final uk . gov . gchq . gaffer . hbasestore . HBaseProperties properties = uk . gov . gchq . gaffer . hbasestore . HBaseProperties . loadStoreProperties ( uk . gov . gchq . gaffer . commonutil . StreamUtil . storeProps ( uk . gov . gchq . gaffer . hbasestore . ... | org . junit . Assert . assertEquals ( "tableName" , store . getGraphId ( ) ) |
testIfUserCanRestartDataStream ( ) { com . datasift . client . DataSiftResult start = datasift . pylon ( ) . restart ( new com . datasift . client . pylon . PylonRecording . PylonRecordingId ( recordingId ) ) . sync ( ) ; "<AssertPlaceHolder>" ; } isSuccessful ( ) { return ( ( ( ( ! ( failed ) ) && ( ( response ) != nu... | org . junit . Assert . assertTrue ( start . isSuccessful ( ) ) |
testConstructQuery ( ) { java . lang . String text = ( ( ( ( ( ( ( ( ( ( "PREFIX<sp>foaf:<sp><" + ( org . eclipse . rdf4j . model . vocabulary . FOAF . NAMESPACE ) ) + ">\n" ) + "CONSTRUCT<sp>{\n" ) + "<sp>?y<sp>foaf:knows<sp>?x<sp>.\n" ) + ">\n" 0 ) + ">\n" 2 ) + "}<sp>WHERE<sp>{\n" ) + ">\n" 1 ) + "<sp>?y<sp>a<sp>foa... | org . junit . Assert . assertEquals ( expected , visitor . getAntecedents ( ) ) |
test ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; java . lang . String sql = "<sp>select<sp>order_id,<sp>'ignoreMe',<sp>sum(d.order_qty*d.unit_price)<sp>as<sp>totalAmount<sp>" + "<sp>from<sp>o_order_detail<sp>d<sp>group<sp>by<sp>order_id<sp>" ; io . ebean . RawSql rawSql = io . ebean . RawSqlBuilder... | org . junit . Assert . assertNotNull ( list ) |
testConnected_NoPendingMessage ( ) { subscription . connected ( client ) ; verifyZeroInteractions ( channel ) ; "<AssertPlaceHolder>" ; } getEvents ( ) { synchronized ( events ) { return new java . util . ArrayList < net . xenqtt . mockbroker . BrokerEvent > ( events ) ; } } | org . junit . Assert . assertEquals ( 0 , events . getEvents ( ) . size ( ) ) |
testGetPermissionsNullString ( ) { "<AssertPlaceHolder>" ; } getPermissions ( java . lang . String ) { if ( ( permissionNames == null ) || ( permissionNames . isEmpty ( ) ) ) { return org . apache . jackrabbit . oak . spi . security . authorization . permission . Permissions . NO_PERMISSION ; } else { return org . apac... | org . junit . Assert . assertEquals ( Permissions . NO_PERMISSION , org . apache . jackrabbit . oak . spi . security . authorization . permission . Permissions . getPermissions ( null ) ) |
testGetComboBox_Get_Text ( ) { when ( value . isAvailable ( ) ) . thenReturn ( true ) ; when ( value . value ( ) ) . thenReturn ( "NAME" ) ; mmarquee . automation . uiautomation . IUIAutomation mocked_automation = org . mockito . Mockito . mock ( mmarquee . automation . uiautomation . IUIAutomation . class ) ; mmarquee... | org . junit . Assert . assertTrue ( name . equals ( "NAME" ) ) |
getExempliGratia_A$ ( ) { org . junithelper . core . config . MessageValue target = new org . junithelper . core . config . MessageValue ( ) ; target . initialize ( null ) ; java . lang . String actual = target . getExempliGratia ( ) ; java . lang . String expected = "e.g." ; "<AssertPlaceHolder>" ; } getExempliGratia ... | org . junit . Assert . assertEquals ( expected , actual ) |
testGenerateCombinationLookupStepFromLogicalTable ( ) { final org . pentaho . metadata . model . LogicalTable logicalTable = mock ( org . pentaho . metadata . model . LogicalTable . class ) ; final org . pentaho . di . core . database . DatabaseMeta databaseMeta = mock ( org . pentaho . di . core . database . DatabaseM... | org . junit . Assert . assertNotNull ( stepMeta ) |
testPiBondingMovementReaction ( ) { org . openscience . cdk . reaction . IReactionProcess type = new org . openscience . cdk . reaction . type . PiBondingMovementReaction ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( type ) |
testSubstreamStartEnd01 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; processor . defineBean ( "beans" , org . apache . el . stream . TestCollectionOperations . beans ) ; java . lang . Object result = processor . getValue ( "beans.stream().substream(1,2).toList()" , java . lang . Object ... | org . junit . Assert . assertEquals ( expected , result ) |
reversed ( ) { java . util . List < com . groupon . lex . metrics . timeseries . TimeSeriesCollection > tsdata = create_tsdata_ ( ) . limit ( 100 ) . collect ( java . util . stream . Collectors . toList ( ) ) ; hist . addAll ( tsdata ) ; reverse ( tsdata ) ; "<AssertPlaceHolder>" ; } streamReversed ( ) { final java . u... | org . junit . Assert . assertEquals ( tsdata , hist . streamReversed ( ) . collect ( java . util . stream . Collectors . toList ( ) ) ) |
testClose ( ) { final java . net . InetSocketAddress addr = com . allanbank . mongodb . client . connection . rs . ReplicaSetConnectionFactoryTest . ourServer . getInetSocketAddress ( ) ; final java . lang . String serverName = com . allanbank . mongodb . util . ServerNameUtils . normalize ( addr ) ; final com . allanb... | org . junit . Assert . assertEquals ( 2 , servers . size ( ) ) |
a_positive_value_should_be_returned_negative ( ) { int value = fr . inria . lille . examples . bool . constant . Neg . neg ( 1 ) ; "<AssertPlaceHolder>" ; } neg ( int ) { if ( value < 0 ) { return ( - 1 ) * value ; } else { return value ; } } | org . junit . Assert . assertEquals ( ( - 1 ) , value ) |
getAllTypeLibraries_forSize ( ) { java . util . List < org . ebayopensource . turmeric . common . config . TypeLibraryType > list = org . ebayopensource . turmeric . tools . library . TypeLibraryRegistryInterfaceTest . m_soaTypeRegistry . getAllTypeLibraries ( ) ; "<AssertPlaceHolder>" ; } getAllTypeLibraries ( ) { org... | org . junit . Assert . assertTrue ( ( ( list . size ( ) ) >= 1 ) ) |
testMatchHivePolicy ( ) { java . util . List < org . apache . ranger . entity . XXResource > xResourceList = new java . util . ArrayList < org . apache . ranger . entity . XXResource > ( ) ; org . apache . ranger . entity . XXResource xXResource = new org . apache . ranger . entity . XXResource ( ) ; xXResource . setId... | org . junit . Assert . assertFalse ( bnlChk ) |
testInputSize1FilterSize1 ( ) { try ( java . io . StringReader input = new java . io . StringReader ( "a" ) ) { final java . util . HashSet < java . lang . Integer > codePoints = new java . util . HashSet ( ) ; codePoints . add ( java . lang . Integer . valueOf ( 'a' ) ) ; final org . apache . commons . io . input . Ch... | org . junit . Assert . assertEquals ( ( - 1 ) , reader . read ( ) ) |
testDeseralize ( ) { final java . lang . String payload = "{\"worker\":\"test5:12385-1:JAVA_DYNAMIC_QUEUES,SomeQueue\",\"queue\":\"audioTranscode\",\"payload\":{\"class\":\"SomeClass\",\"args\":[1234]},\"exception\":\"groovy.lang.MissingMethodException\",\"error\":\"SomeError\",\"backtrace\":[\"\\tat<sp>sompackage.some... | org . junit . Assert . assertNull ( jobFailure . getThrowable ( ) ) |
testReadWrite ( ) { org . nd4j . linalg . api . ndarray . INDArray write = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 , DataType . DOUBLE ) ; java . io . ByteArrayOutputStream bos = new java . io . ByteArrayOutputStream ( ) ; java . io . DataOutputStream dos = new java . io . DataOutputStream ( bos ) ;... | org . junit . Assert . assertEquals ( write , read ) |
shouldNavigateThroughProperties ( ) { com . googlecode . starflow . core . script . spel . SpelScriptEngine scriptEngineImpl = new com . googlecode . starflow . core . script . spel . SpelScriptEngine ( ) ; javax . script . ScriptContext scriptContext = new javax . script . SimpleScriptContext ( ) ; scriptContext . set... | org . junit . Assert . assertEquals ( "Mike<sp>Tesla" , name ) |
killNonExistentJobShouldReturnNull ( ) { org . apache . metron . rest . mock . MockPcapJob mockPcapJob = mock ( org . apache . metron . rest . mock . MockPcapJob . class ) ; org . apache . metron . job . manager . JobManager jobManager = mock ( org . apache . metron . job . manager . JobManager . class ) ; doThrow ( ne... | org . junit . Assert . assertNull ( status ) |
shouldGetDurationForNullParameter ( ) { long duration = se . diabol . jenkins . workflow . api . Stage . getDurationOf ( null ) ; "<AssertPlaceHolder>" ; } getDurationOf ( java . util . List ) { long result = 0 ; if ( stages != null ) { for ( se . diabol . jenkins . workflow . api . Stage stage : stages ) { result = re... | org . junit . Assert . assertThat ( duration , org . hamcrest . core . Is . is ( 0L ) ) |
testOutEPolymorphic ( ) { int found ; found = 0 ; for ( com . tinkerpop . blueprints . Edge v : ( ( java . lang . Iterable < com . tinkerpop . blueprints . Edge > ) ( com . orientechnologies . orient . graph . blueprints . GraphFunctionsTest . graph . command ( new com . orientechnologies . orient . core . sql . OComma... | org . junit . Assert . assertEquals ( found , 2 ) |
testVersionOutput ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "-v" } ; org . apache . cxf . tools . common . CommandInterfaceUtils . commandCommonMain ( ) ; org . apache . cxf . tools . java2ws . JavaToWS j2w = new org . apache . cxf . tools . java2ws . JavaToWS ( args ) ; j2w . run ( ) ; "<Ass... | org . junit . Assert . assertNotNull ( getStdOut ( ) ) |
shouldGetBelongsToFieldReturnEntity ( ) { com . qcadoo . model . api . Entity belongsToEntity = mock ( com . qcadoo . model . api . Entity . class ) ; defaultEntity . setField ( com . qcadoo . model . internal . DefaultEntityTest . BELONGS_TO_FIELD_NAME , belongsToEntity ) ; com . qcadoo . model . api . Entity returned... | org . junit . Assert . assertEquals ( belongsToEntity , returnedEntity ) |
testGroovyValGeneration ( ) { com . smartitengineering . cms . spi . content . template . TypeFieldValidator generator = new com . smartitengineering . cms . spi . impl . content . template . GroovyValidatorGenerator ( ) ; final com . smartitengineering . cms . api . workspace . ValidatorTemplate template = mockery . m... | org . junit . Assert . assertFalse ( provider . isValidField ( content , field ) ) |
testMultipleReaders ( ) { final java . util . List < java . lang . Throwable > threadExceptions = java . util . Collections . synchronizedList ( new java . util . ArrayList < java . lang . Throwable > ( ) ) ; java . util . Map < java . lang . String , org . apache . commons . lang . mutable . MutableInt > messages = ne... | org . junit . Assert . assertTrue ( threadExceptions . isEmpty ( ) ) |
testPopulateEdgeIndex ( ) { "<AssertPlaceHolder>" ; org . apache . tinkerpop . gremlin . structure . Vertex v0 = graph . addVertex ( T . id , id ( 0 ) ) ; org . apache . tinkerpop . gremlin . structure . Vertex v1 = graph . addVertex ( T . id , id ( 1 ) ) ; org . apache . tinkerpop . gremlin . structure . Vertex v2 = g... | org . junit . Assert . assertEquals ( 0 , count ( graph . vertices ( ) ) ) |
testRangeQueryInvalidTime2 ( ) { final org . eclipse . tracecompass . statesystem . core . ITmfStateSystem ss = org . eclipse . tracecompass . lttng2 . kernel . core . tests . analysis . kernel . statesystem . StateSystemTest . fixture ; "<AssertPlaceHolder>" ; try { int quark = ss . getQuarkAbsolute ( Attributes . CPU... | org . junit . Assert . assertNotNull ( ss ) |
testDescendantsTitleModifiedSort ( ) { long start = java . lang . System . currentTimeMillis ( ) ; activity = createActivity ( ( "ActivityDescendantsModifiedSort-" + start ) ) ; java . util . List < com . ibm . sbt . services . client . connections . activities . ActivityNode > nodes = createActivityDescendants ( activ... | org . junit . Assert . assertNotNull ( nodes ) |
testFragmentURI_05 ( ) { java . lang . String fragment = uriHelper . getFragment ( org . eclipse . jdt . core . Signature . createTypeSignature ( "java.util.Map$Entry" , true ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; } | org . junit . Assert . assertEquals ( Map . Entry . class . getName ( ) , fragment ) |
testSetConstant ( ) { org . pentaho . hbase . shim . api . ColumnFilter cf = new org . pentaho . hbase . shim . api . ColumnFilterTest ( ) ; cf . setConstant ( "test" ) ; "<AssertPlaceHolder>" ; } setConstant ( java . lang . String ) { m_constant = constant ; } | org . junit . Assert . assertEquals ( "test" , cf . m_constant ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.