input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
doWebSocketConnectWithInvalidSubprotocl ( ) { org . apache . vysper . xmpp . extension . websockets . JettyXmppWebSocketServlet servlet = new org . apache . vysper . xmpp . extension . websockets . JettyXmppWebSocketServlet ( serverRuntimeContext ) ; org . eclipse . jetty . websocket . WebSocket webSocket = servlet . d...
org . junit . Assert . assertNull ( webSocket )
testM4Strings2 ( ) { java . lang . String text = "myword(!!boundary==)\n" ; org . eclipse . jface . text . IDocument document = createDocument ( text ) ; org . eclipse . cdt . autotools . ui . editors . parser . AutoconfTokenizer tokenizer = createTokenizer ( document ) ; tokenizer . setM4Context ( true ) ; tokenizer ....
org . junit . Assert . assertEquals ( 5 , tokens . size ( ) )
testSetId ( ) { org . gradoop . common . model . impl . pojo . Element elementMock = mock ( org . gradoop . common . model . impl . pojo . Element . class , org . gradoop . common . model . impl . pojo . CALLS_REAL_METHODS ) ; org . gradoop . common . model . impl . id . GradoopId id = org . gradoop . common . model . ...
org . junit . Assert . assertSame ( id , elementMock . getId ( ) )
voidedSuccess ( ) { io . trane . future . Promise < java . lang . Integer > p = io . trane . future . Promise . apply ( ) ; io . trane . future . Future < java . lang . Void > future = p . voided ( ) ; p . setValue ( 1 ) ; "<AssertPlaceHolder>" ; } get ( io . trane . future . Future ) { return future . get ( Duration ....
org . junit . Assert . assertNull ( get ( future ) )
testInsertFinalClassInstance ( ) { final org . kie . api . KieBase kbase = org . drools . compiler . integrationtests . SerializationHelper . serializeObject ( loadKnowledgeBase ( "test_FinalClass.drl" ) ) ; final org . kie . api . runtime . KieSession ksession = createKnowledgeSession ( kbase ) ; final java . util . L...
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
testPersistMerge ( ) { this . persist ( this . createParent ( 1 ) ) ; this . commit ( ) ; org . batoo . jpa . core . test . merge . Parent parent = this . createParent ( 1 ) ; parent = this . merge ( parent ) ; "<AssertPlaceHolder>" ; } getCounts2 ( ) { final int [ ] counts = new int [ 4 ] ; try { for ( int i = 0 ; i <...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new int [ ] { 2 , 2 , 2 , 2 } , this . getCounts2 ( ) ) )
testInvokeJavascriptReturnValue_Null ( ) { java . lang . String arg = "myArg" ; java . lang . Object [ ] argArray = new java . lang . Object [ ] { arg } ; java . lang . String function = "myFunction" ; when ( mockJsObject . call ( function , argArray ) ) . thenReturn ( null ) ; java . lang . String returnValue = testJa...
org . junit . Assert . assertNull ( returnValue )
testHasJsps_jspInSub ( ) { org . eclipse . wst . common . componentcore . resources . IVirtualFolder root = mock ( org . eclipse . wst . common . componentcore . resources . IVirtualFolder . class , "/" ) ; org . eclipse . wst . common . componentcore . resources . IVirtualFolder folder = mock ( org . eclipse . wst . c...
org . junit . Assert . assertTrue ( com . google . cloud . tools . eclipse . appengine . facets . WebProjectUtil . hasJsps ( root ) )
testGeenDocumentInBron ( ) { final nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht nieuwSituatie = maakNieuwSituatie ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . verbintenis . BRAL2110Test . GEMEENTE_AMSTERDAM ) ; final nl . bzk . brp . model . bericht . ker...
org . junit . Assert . assertEquals ( 0 , berichtEntiteits . size ( ) )
checkImportJavaRDDOfElements ( ) { final uk . gov . gchq . gaffer . graph . Graph graph1 = new uk . gov . gchq . gaffer . graph . Graph . Builder ( ) . config ( new uk . gov . gchq . gaffer . graph . GraphConfig . Builder ( ) . graphId ( "graphId" ) . build ( ) ) . addSchema ( getClass ( ) . getResourceAsStream ( "/sch...
org . junit . Assert . assertEquals ( elements . size ( ) , results . size ( ) )
deveObterEventosComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFEnviaEventoCancelamento eventoCancelamento = new com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFEnviaEventoCancelamento ( ) ; final java . util . ArrayList < com . f...
org . junit . Assert . assertEquals ( eventosCancelamento , eventoCancelamento . getEvento ( ) )
testReadFromWithMessageNum3 ( ) { org . o3project . odenos . core . component . network . flow . FlowChanged target = new org . o3project . odenos . core . component . network . flow . FlowChanged ( paramPrev , paramCurr , org . o3project . odenos . core . component . network . flow . FlowChanged . Action . add ) ; org...
org . junit . Assert . assertTrue ( ( e instanceof java . io . IOException ) )
testInteger3 ( ) { org . eclipse . birt . data . engine . olap . data . document . BlockRandomAccessObject documentObject = new org . eclipse . birt . data . engine . olap . data . document . BlockRandomAccessObject ( new org . eclipse . birt . data . engine . olap . data . util . BufferedRandomAccessFile ( new java . ...
org . junit . Assert . assertEquals ( documentObject . read ( bytes , 0 , bytes . length ) , ( - 1 ) )
testGet_workflow_run_accession ( ) { logger . info ( "get_workflow_run_accession" ) ; int workflowRunId = 23 ; int expResult = 863 ; int result = net . sourceforge . seqware . common . metadata . MetadataWSTest . instance . get_workflow_run_accession ( workflowRunId ) ; "<AssertPlaceHolder>" ; } get_workflow_run_access...
org . junit . Assert . assertEquals ( expResult , result )
testGetChunkTooHighIndex ( ) { java . io . File file = new java . io . File ( org . hive2hive . core . file . FileChunkUtilTest . parent , randomString ( ) ) ; org . apache . commons . io . FileUtils . write ( file , "test" ) ; org . hive2hive . core . model . Chunk chunk = org . hive2hive . core . file . FileChunkUtil...
org . junit . Assert . assertNull ( chunk )
shouldReturnAllTransientNodeKeys ( ) { org . modeshape . jcr . cache . NodeKey rootKey = session1 . getRootKey ( ) ; org . modeshape . jcr . cache . MutableCachedNode root = session1 . mutable ( rootKey ) ; org . modeshape . jcr . cache . NodeKey childAKey = root . createChild ( session ( ) , newKey ( "x-childA" ) , na...
org . junit . Assert . assertEquals ( new java . util . HashSet < org . modeshape . jcr . cache . NodeKey > ( java . util . Arrays . asList ( rootKey , childAKey , childBKey ) ) , transientNodeKeys )
testStandardize ( ) { final org . nd4j . linalg . api . ndarray . INDArray random = org . nd4j . linalg . factory . Nd4j . rand ( new int [ ] { 10 , 4 } ) ; final int [ ] axis = new int [ ] { 1 } ; final org . nd4j . linalg . api . ndarray . INDArray means = random . mean ( axis ) ; final org . nd4j . linalg . api . nd...
org . junit . Assert . assertNull ( err , err )
testStyleNamePropertyRetrieved ( ) { com . vaadin . v7 . data . util . IndexedContainer ic = ( ( com . vaadin . v7 . data . util . IndexedContainer ) ( com . vaadin . v7 . tests . server . component . calendar . ContainerDataSourceTest . createTestIndexedContainer ( ) ) ) ; ic . addContainerProperty ( "testStyleName" ,...
org . junit . Assert . assertEquals ( "testStyle" , ce . getStyleName ( ) )
testCreateTenantVDCEdgeDeviceRoutePolicy ( ) { boolean response = com . cloud . network . cisco . CiscoVnmcConnectionTest . connection . createTenantVDCEdgeStaticRoutePolicy ( com . cloud . network . cisco . CiscoVnmcConnectionTest . tenantName ) ; "<AssertPlaceHolder>" ; } createTenantVDCEdgeStaticRoutePolicy ( java ....
org . junit . Assert . assertTrue ( response )
deepUpdateExistingUpdates ( ) { com . google . firebase . database . core . CompoundWrite compoundWrite = com . google . firebase . database . core . CompoundWrite . emptyWrite ( ) ; java . util . Map < java . lang . String , java . lang . Object > base = new com . google . firebase . database . MapBuilder ( ) . put ( ...
org . junit . Assert . assertEquals ( expected , compoundWrite . apply ( baseNode ) )
shouldRemoveNodeWithNoRelationsFromDBOnDelete ( ) { long nodeId ; try ( org . neo4j . graphdb . Transaction tx = org . neo4j . server . rest . web . DatabaseActionsTest . database . getGraph ( ) . beginTx ( ) ) { org . neo4j . graphdb . Node node = org . neo4j . server . rest . web . DatabaseActionsTest . database . ge...
org . junit . Assert . assertEquals ( ( nodeCount - 1 ) , org . neo4j . server . rest . web . DatabaseActionsTest . graphdbHelper . getNumberOfNodes ( ) )
testIdentityShuffleProofGenerator2 ( ) { final ch . bfh . unicrypt . math . algebra . multiplicative . classes . GStarMod G_q = ch . bfh . unicrypt . math . algebra . multiplicative . classes . GStarModSafePrime . getInstance ( new java . math . BigInteger ( ch . bfh . unicrypt . crypto . proofsystem . IdentityShuffleP...
org . junit . Assert . assertTrue ( v )
testGetAggregatedPrivilegeNames ( ) { com . google . common . collect . ImmutableSet < java . lang . String > expected = com . google . common . collect . ImmutableSet . of ( org . apache . jackrabbit . oak . spi . security . privilege . JCR_LOCK_MANAGEMENT , org . apache . jackrabbit . oak . spi . security . privilege...
org . junit . Assert . assertEquals ( expected , com . google . common . collect . ImmutableSet . copyOf ( result ) )
connectedToInstance ( ) { final org . apache . rya . shell . SharedShellState state = new org . apache . rya . shell . SharedShellState ( ) ; final org . apache . rya . api . client . accumulo . AccumuloConnectionDetails connectionDetails = mock ( org . apache . rya . api . client . accumulo . AccumuloConnectionDetails...
org . junit . Assert . assertEquals ( expected , state . getShellState ( ) )
deveGerarXMLDeAcordoComOPadraoEstabelecido ( ) { final java . lang . String xmlEsperado = "<NFNotaInfoPagamento><detPag><indPag>1</indPag><tPag>03</tPag><vPag>999999999999.99</vPag><card><tpIntegra>1</tpIntegra><CNPJ>12345678901234</CNPJ><tBand>02</tBand><cAut>9ItpS1hBk3TyhjUB3I90</cAut></card></detPag></NFNotaInfoPaga...
org . junit . Assert . assertEquals ( xmlEsperado , com . fincatto . documentofiscal . nfe400 . FabricaDeObjetosFake . getNFNotaInfoPagamento ( ) . toString ( ) )
testTrash ( ) { final com . cloud . network . dao . NetworkVO network = mock ( com . cloud . network . dao . NetworkVO . class ) ; when ( network . getName ( ) ) . thenReturn ( "testnetwork" ) ; when ( network . getState ( ) ) . thenReturn ( State . Implementing ) ; when ( network . getId ( ) ) . thenReturn ( com . clo...
org . junit . Assert . assertTrue ( ( result == true ) )
xmlInput ( ) { java . lang . Object payload = flowRunner ( "input" ) . withPayload ( org . mule . test . module . extension . XML_VALUE ) . run ( ) . getMessage ( ) . getPayload ( ) . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertThat ( payload , org . hamcrest . CoreMatchers . is ( org . mule . test . module . extension . XML_VALUE ) )
testDeclareVariablesLine32 ( ) { java . util . List < java . lang . Integer > result = forComp ( i , range ) . forCompInt ( j , ( ) -> java . util . stream . IntStream . rangeClosed ( 1 , i . val ( ) ) ) . letComp ( k , ( ) -> ( i . val ( ) ) - ( j . val ( ) ) ) . yield ( ( ) -> k . val ( ) ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( List ( 0 , 1 , 0 , 2 , 1 , 0 , 3 , 2 , 1 , 0 , 4 , 3 , 2 , 1 , 0 ) , result )
testRemoveLineBreaks_whenBootstrapActionStringIsSpaces ( ) { java . lang . String bootstrapStringWithBreaks = "<sp>" ; java . lang . String expectedString = "" ; java . lang . String resultBootstrapString = emrClient . removeLineBreaks ( bootstrapStringWithBreaks ) ; "<AssertPlaceHolder>" ; } removeLineBreaks ( java . ...
org . junit . Assert . assertEquals ( expectedString , resultBootstrapString )
testGetItemPadding_onLast ( ) { org . eclipse . rap . rwt . theme . BoxDimensions actual = org . eclipse . rap . rwt . internal . theme . TabFolderThemeAdapter_Test . getThemeAdapter ( folder ) . getItemPadding ( lastItem ) ; "<AssertPlaceHolder>" ; } getItemPadding ( boolean ) { org . eclipse . rap . rwt . internal . ...
org . junit . Assert . assertEquals ( new org . eclipse . rap . rwt . theme . BoxDimensions ( 3 , 3 , 3 , 3 ) , actual )
testDeafultConsistent ( ) { org . sagebionetworks . table . cluster . SqlQuery query = new org . sagebionetworks . table . cluster . SqlQueryBuilder ( sql ) . tableSchema ( schema ) . isConsistent ( null ) . build ( ) ; "<AssertPlaceHolder>" ; } isConsistent ( ) { return this . isConsistent ; }
org . junit . Assert . assertTrue ( query . isConsistent ( ) )
testConvert ( ) { java . lang . String content = "content" ; boolean isHtml = true ; java . lang . String email = "ivanon2@gmail.com" ; java . lang . String sender = "sender" ; java . lang . String topic = "topic" ; org . lnu . is . mailing . model . Recipient recipient1 = new org . lnu . is . mailing . model . Recipie...
org . junit . Assert . assertEquals ( expected , actual )
testVariableNameWithDot ( ) { try { java . lang . String filename = "/hdf5/grid_1_3d_xyz_aug.h5" ; java . lang . String remoteFile = thredds . TestOnLocalServer . withHttpPath ( ( ( thredds . server . cdmr . TestCdmRemoteMisc . urlPath ) + filename ) ) ; ucar . nc2 . stream . CdmRemote ncfileRemote = new ucar . nc2 . s...
org . junit . Assert . assertTrue ( ok )
xmlRoundrip ( ) { org . mycore . datamodel . metadata . MCRMetaXML mXml = new org . mycore . datamodel . metadata . MCRMetaXML ( "def.heading" , "complete" , 0 ) ; org . jdom2 . Element imported = new org . jdom2 . Element ( "heading" ) ; imported . setAttribute ( "0" 1 , MCRMetaDefault . DEFAULT_LANGUAGE , Namespace ....
org . junit . Assert . assertTrue ( org . mycore . common . xml . MCRXMLHelper . deepEqual ( new org . jdom2 . Document ( imported ) , new org . jdom2 . Document ( exported ) ) )
testOnVariableChangeWhenVariableSelected ( ) { when ( variableSearchSelectionHandler . getSelectedKey ( ) ) . thenReturn ( org . kie . workbench . common . stunner . bpmn . client . forms . fields . conditionEditor . SimpleConditionEditorPresenterTest . VARIABLE ) ; when ( variableSearchService . getOptionType ( org . ...
org . junit . Assert . assertFalse ( presenter . isValid ( ) )
testCacheResponseWithInvalidationPUT ( ) { org . codehaus . httpcache4j . cache . Headers responseHeaders = new org . codehaus . httpcache4j . cache . Headers ( ) ; responseHeaders . add ( new org . codehaus . httpcache4j . cache . Header ( HeaderConstants . CACHE_CONTROL , "private,<sp>max-age=60" ) ) ; doGet ( respon...
org . junit . Assert . assertEquals ( 0 , cacheStorage . size ( ) )
canBeSerializedAndDeserialized ( ) { array . add ( true ) . add ( 3.14 ) . add ( 23 ) . add ( "foo" ) . add ( new com . restfb . json . JsonArray ( ) . add ( false ) ) ; "<AssertPlaceHolder>" ; } serializeAndDeserialize ( T ) { return ( ( T ) ( com . restfb . json . TestUtil . deserialize ( com . restfb . json . TestUt...
org . junit . Assert . assertEquals ( array , com . restfb . json . TestUtil . serializeAndDeserialize ( array ) )
testBinding ( ) { FIELD newFieldDefinition = getEmptyFieldDefinition ( ) ; newFieldDefinition . setBinding ( org . kie . workbench . common . forms . fields . shared . fieldTypes . AbstractFieldDefinitionTest . BINDING ) ; "<AssertPlaceHolder>" ; } getBinding ( ) { if ( ( binding ) == null ) { binding = new java . util...
org . junit . Assert . assertEquals ( org . kie . workbench . common . forms . fields . shared . fieldTypes . AbstractFieldDefinitionTest . BINDING , newFieldDefinition . getBinding ( ) )
testGetPreferredMergeStrategyWhenInvalidPreference ( ) { org . eclipse . core . runtime . preferences . InstanceScope . INSTANCE . getNode ( org . eclipse . egit . core . Activator . getPluginId ( ) ) . put ( GitCorePreferences . core_preferredMergeStrategy , "invalid<sp>value" ) ; "<AssertPlaceHolder>" ; } getPreferre...
org . junit . Assert . assertNull ( a . getPreferredMergeStrategy ( ) )
testAttributeGroupSorting ( ) { com . b2international . snowowl . snomed . ecl . ecl . ExpressionConstraint expression = com . b2international . snowowl . semanticengine . simpleast . test . utils . TestUtils . parseExpression ( com . b2international . snowowl . semanticengine . simpleast . normalform . test . Expressi...
org . junit . Assert . assertEquals ( expression . toString ( ) , expressionShuffled . toString ( ) )
testEmptyXMPSchemas ( ) { initValues ( ) ; metadata . createAndAddDublinCoreSchema ( ) ; metadata . createAndAddAdobePDFSchema ( ) ; metadata . createAndAddXMPBasicSchema ( ) ; dico . setTitle ( title ) ; dico . setAuthor ( author ) ; dico . setSubject ( subject ) ; dico . setKeywords ( keywords ) ; dico . setCreator (...
org . junit . Assert . assertEquals ( 8 , ve . size ( ) )
_4_A$ ( ) { java . lang . String _1 = "foo" ; java . lang . Integer _2 = 123 ; java . lang . Long _3 = 456L ; java . lang . Boolean _4 = true ; com . m3 . scalaflavor4j . Tuple4 < java . lang . String , java . lang . Integer , java . lang . Long , java . lang . Boolean > target = com . m3 . scalaflavor4j . Tuple4 . app...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testList8 ( ) { java . util . List in = new java . util . ArrayList ( ) ; in . add ( new org . fusesource . amqp . codec . AMQPByte ( ( ( byte ) ( 3 ) ) ) ) ; in . add ( new org . fusesource . amqp . codec . AMQPShort ( ( ( short ) ( 5 ) ) ) ) ; in . add ( new org . fusesource . amqp . codec . AMQPInt ( 10 ) ) ; in . a...
org . junit . Assert . assertEquals ( in , out )
testUpdate_OptimisticLock1 ( ) { com . jmethods . catatumbo . entities . OptimisticLock1 entity = new com . jmethods . catatumbo . entities . OptimisticLock1 ( ) ; entity . setName ( "Before<sp>Update!" ) ; com . jmethods . catatumbo . entities . OptimisticLock1 entity2 = com . jmethods . catatumbo . EntityManagerTest ...
org . junit . Assert . assertTrue ( ( ( ( ( ( entity2 . getVersion ( ) ) == 1 ) && ( ( entity3 . getVersion ( ) ) == 1 ) ) && ( ( entity4 . getVersion ( ) ) == 2 ) ) && ( ( entity5 . getVersion ( ) ) == 2 ) ) )
deletedNodesShouldNotBeRecreated ( ) { org . apache . jackrabbit . oak . spi . state . NodeState root = org . apache . jackrabbit . oak . plugins . memory . EmptyNodeState . EMPTY_NODE ; org . apache . jackrabbit . oak . spi . state . NodeState withProperty ; { org . apache . jackrabbit . oak . spi . state . NodeBuilde...
org . junit . Assert . assertFalse ( merged . hasChildNode ( "c" ) )
shouldValidateUnchangedTocBelongingToAlreadyAcceptedTechnology ( ) { given ( technology . getId ( ) ) . willReturn ( 101L ) ; given ( techDataDefinition . get ( 101L ) ) . willReturn ( existingTechnology ) ; given ( technology . getStringField ( TechnologyFields . STATE ) ) . willReturn ( TechnologyState . ACCEPTED . g...
org . junit . Assert . assertTrue ( isValid )
testRemoveNonStringValue ( ) { final java . lang . String key = "Key" ; final org . apache . logging . log4j . message . ObjectMapMessage msg = new org . apache . logging . log4j . message . ObjectMapMessage ( ) . with ( key , 1L ) ; "<AssertPlaceHolder>" ; } remove ( java . lang . String ) { boolean success ; do { suc...
org . junit . Assert . assertEquals ( "1" , msg . remove ( key ) )
testSearchForExtensionTwoDeepReferenceWithoutType ( ) { ca . uhn . fhir . jpa . dao . dstu2 . SearchParameter siblingSp = new ca . uhn . fhir . jpa . dao . dstu2 . SearchParameter ( ) ; siblingSp . setBase ( ResourceTypeEnum . PATIENT ) ; siblingSp . setCode ( "foobar" ) ; siblingSp . setType ( SearchParamTypeEnum . RE...
org . junit . Assert . assertThat ( foundResources , contains ( p2id . getValue ( ) ) )
test_ulong_disc_union_manual ( ) { org . jacorb . test . orb . ULongDiscUnion testValue = new org . jacorb . test . orb . ULongDiscUnion ( ) ; testValue . s ( "foo" ) ; org . omg . CORBA . Any outAny = setup . getClientOrb ( ) . create_any ( ) ; outAny . type ( org . jacorb . test . orb . ULongDiscUnionHelper . type ( ...
org . junit . Assert . assertTrue ( outAny . equal ( inAny ) )
testGetMostRecentResult ( ) { org . junit . Assume . assumeTrue ( ( ( TestIntegrationSuite . testInstance ) != null ) ) ; com . rmn . testrail . entity . TestResult testResult = com . rmn . testrail . service . TestIntegrationSuite . getService ( ) . getTestResult ( TestIntegrationSuite . testInstance . getId ( ) ) ; "...
org . junit . Assert . assertNotNull ( testResult )
setUpdateLimit ( ) { java . util . Map < java . lang . String , java . lang . Object > config = newConfig ( repoHome ) ; config . put ( DocumentNodeStoreServiceConfiguration . PROP_UPDATE_LIMIT , 17 ) ; org . apache . sling . testing . mock . osgi . MockOsgi . setConfigForPid ( context . bundleContext ( ) , org . apach...
org . junit . Assert . assertEquals ( 17 , store . getUpdateLimit ( ) )
testExtractRuleSections_invalidRule ( ) { java . lang . String fileContent = ( MonitoringRunnable . RULE_BEGINNING ) + "<sp>file<sp>event<sp>id<sp>with<sp>spaces]" ; net . roboconf . agent . monitoring . internal . MonitoringRunnable task = new net . roboconf . agent . monitoring . internal . MonitoringRunnable ( this ...
org . junit . Assert . assertEquals ( 0 , handlers . size ( ) )
testGetActions ( ) { int requestId = 500 ; org . apache . ambari . server . actionmanager . ActionDBAccessor db = createStrictMock ( org . apache . ambari . server . actionmanager . ActionDBAccessor . class ) ; org . apache . ambari . server . state . Clusters clusters = createNiceMock ( org . apache . ambari . server ...
org . junit . Assert . assertSame ( listStages , manager . getActions ( requestId ) )
testBuildWithParameters ( ) { java . lang . String name = "name" ; org . lnu . is . domain . asset . state . AssetState context = new org . lnu . is . domain . asset . state . AssetState ( ) ; context . setName ( name ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>AssetState<sp>e<sp>WHERE<sp>(<sp>e.name<sp...
org . junit . Assert . assertEquals ( expected , actualQuery )
intial_noop ( ) { org . cache2k . Cache < java . lang . Integer , java . lang . Integer > c = target . cache ( ) ; org . cache2k . processor . EntryProcessor p = new org . cache2k . processor . EntryProcessor ( ) { @ org . cache2k . test . core . Override public java . lang . Object process ( org . cache2k . processor ...
org . junit . Assert . assertNull ( _result )
testSupplierGetByID ( ) { int code = 0 ; try { code = _setupTestSupplier ( false ) ; org . isf . supplier . model . Supplier foundSupplier = supplierIoOperation . getByID ( code ) ; _checkSupplierIntoDb ( foundSupplier . getSupId ( ) ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( true , false )
deleteFile ( ) { try { java . io . OutputStream outStream ; outStream = getFileStore ( ) . write ( eu . fbk . knowledgestore . filestore . AbstractFileStoreTest . FILENAME_1 ) ; "<AssertPlaceHolder>" ; outStream . write ( eu . fbk . knowledgestore . filestore . AbstractFileStoreTest . CONTENT_1 ) ; outStream . close ( ...
org . junit . Assert . assertNotNull ( outStream )
testSetSubKeyNullEmptyString ( ) { pool . getSourceSubscription ( ) . setSubscriptionId ( null ) ; pool . setSubscriptionSubKey ( "" ) ; "<AssertPlaceHolder>" ; } getSourceSubscription ( ) { return sourceSubscription ; }
org . junit . Assert . assertNull ( pool . getSourceSubscription ( ) )
testResolveTemplatesSlash ( ) { javax . ws . rs . client . WebTarget base = org . jboss . resteasy . test . client . WebTargetTest . client . target ( ( ( generateURL ( "/" ) ) + "users/{username}" ) ) ; javax . ws . rs . client . WebTarget created = base . path ( "{id}/{question}/{question}" ) ; java . util . Map < ja...
org . junit . Assert . assertEquals ( "username" 1 , result )
testIsDone_False ( ) { initializeExpectedJob ( 2 ) ; com . google . cloud . bigquery . BigQuery [ ] expectedOptions = new BigQuery . JobOption [ ] { BigQuery . JobOption . fields ( BigQuery . JobField . STATUS ) } ; com . google . cloud . bigquery . JobStatus status = createStrictMock ( com . google . cloud . bigquery ...
org . junit . Assert . assertFalse ( job . isDone ( ) )
testPostDocumentFolderDocument ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testToDMNModelExpressionKindJavaAndPMML ( ) { cellValueSupplier = ( ) -> java . util . Optional . of ( new org . kie . workbench . common . dmn . client . editors . expressions . types . context . ExpressionCellValue ( java . util . Optional . of ( supplementaryEditor ) ) ) ; mapper . toDMNModel ( 0 , 0 , cellValueSupp...
org . junit . Assert . assertEquals ( context , function . getExpression ( ) )
testNegativeX ( ) { org . apache . commons . math . geometry . Vector3D c = new org . apache . commons . math . geometry . Vector3D ( ( - 1.2323 ) , 1.4343 , 1.6333 ) ; java . lang . String expected = ( ( ( ( ( "{-1" + ( getDecimalCharacter ( ) ) ) + "23;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "43;<sp>1" ) + ( getDe...
org . junit . Assert . assertEquals ( expected , actual )
testNewPseudoAtom_String ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IPseudoAtom atom = builder . newInstance ( org . openscience . cdk . interfaces . IPseudoAtom ...
org . junit . Assert . assertNotNull ( atom )
testDoesntCallMethodIfAbsent ( ) { final org . apache . flink . yarn . RegisterApplicationMasterResponseReflector registerApplicationMasterResponseReflector = new org . apache . flink . yarn . RegisterApplicationMasterResponseReflector ( org . apache . flink . yarn . RegisterApplicationMasterResponseReflectorTest . LOG...
org . junit . Assert . assertThat ( containersFromPreviousAttemptsUnsafe , org . hamcrest . Matchers . empty ( ) )
testScanBeforeGet ( ) { uk . ac . bbsrc . tgac . miso . integration . BoxScanner scanner = getScanner ( ) ; prePrepare ( ) ; scanner . prepareScan ( 2 , 2 ) ; simulateScan ( getSampleScan ( "11111" ) ) ; preGet ( ) ; uk . ac . bbsrc . tgac . miso . integration . BoxScan scan = scanner . getScan ( ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( "11111" , scan . getBarcode ( 1 , 1 ) )
testIsScrumTeam ( ) { org . apache . olingo . odata2 . ref . model . Team team1 = new org . apache . olingo . odata2 . ref . model . Team ( 1 , null ) ; team1 . setScrumTeam ( true ) ; "<AssertPlaceHolder>" ; } isScrumTeam ( ) { return isScrumTeam ; }
org . junit . Assert . assertTrue ( team1 . isScrumTeam ( ) )
deveObterStatusComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . inutilizacao . NFRetornoEventoInutilizacaoDados dados = new com . fincatto . documentofiscal . nfe400 . classes . evento . inutilizacao . NFRetornoEventoInutilizacaoDados ( ) ; final java . lang . String status = "Em...
org . junit . Assert . assertEquals ( status , dados . getStatus ( ) )
shouldResolveSecurityPolicy1 ( ) { io . gravitee . gateway . api . Request request = mock ( io . gravitee . gateway . api . Request . class ) ; io . gravitee . gateway . security . core . AuthenticationHandler securityProvider1 = mock ( io . gravitee . gateway . security . core . AuthenticationHandler . class ) ; when ...
org . junit . Assert . assertEquals ( securityProvider1 , securityProvider )
testFailFirst ( ) { org . apache . hadoop . fs . shell . find . And and = new org . apache . hadoop . fs . shell . find . And ( ) ; org . apache . hadoop . fs . shell . PathData pathData = mock ( org . apache . hadoop . fs . shell . PathData . class ) ; org . apache . hadoop . fs . shell . find . Expression first = moc...
org . junit . Assert . assertEquals ( Result . FAIL , and . apply ( pathData ) )
test_return_value ( ) { com . cloudbees . syslog . util . CachingReference < java . lang . String > cachingReference = new com . cloudbees . syslog . util . CachingReference < java . lang . String > ( 5 , java . util . concurrent . TimeUnit . SECONDS ) { @ javax . annotation . Nullable @ com . cloudbees . syslog . util...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . equalTo ( "value" ) )
testCreateKerberosSecurityTypeNone ( ) { java . util . Map < java . lang . String , java . lang . Object > reuqestMap = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , java . lang . Object > security = new java . util . HashMap ( ) ; security . put ( SecurityConfigurationFactory . TYPE_PROPER...
org . junit . Assert . assertTrue ( ( ( securityConfiguration . getType ( ) ) == ( org . apache . ambari . server . state . SecurityType . NONE ) ) )
getType ( ) { "<AssertPlaceHolder>" ; } getType ( ) { org . junit . Assert . assertEquals ( java . util . Map . class , nl . jqno . equalsverifier . internal . prefabvalues . TypeTagTest . SOME_LONG_TYPETAG . getType ( ) ) ; }
org . junit . Assert . assertEquals ( java . util . Map . class , nl . jqno . equalsverifier . internal . prefabvalues . TypeTagTest . SOME_LONG_TYPETAG . getType ( ) )
testBuildWithSecurityCOnstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . order . type . OrderType context = new org . lnu . is . domain . order . type . OrderType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>OrderType<sp>e<sp>WHERE<sp>e.status=:status<sp>" ; org . lnu . is . pagin...
org . junit . Assert . assertEquals ( expected , actualQuery )
testRename ( ) { final org . uberfire . backend . vfs . Path expectedPath = mock ( org . uberfire . backend . vfs . Path . class ) ; doReturn ( expectedPath ) . when ( renameService ) . rename ( path , newFileName , comment ) ; final org . uberfire . backend . vfs . Path actualPath = htmlEditorService . rename ( path ,...
org . junit . Assert . assertEquals ( expectedPath , actualPath )
testLinkSourceIpAddress ( ) { linkInformation . setLinkSourceIpAddress ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) ; "<AssertPlaceHolder>" ; } linkSourceIpAddress ( ) { return linkSourceIpAddress ; }
org . junit . Assert . assertThat ( linkInformation . linkSourceIpAddress ( ) , org . hamcrest . CoreMatchers . is ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . tools . service . builder . test . model . LVEntry . class , _dynamicQueryClassLoader ) ; dynami...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testAbstractInternalMethodNoErrors_withAllowAbstractClassesEnabled ( ) { java . lang . String [ ] imports = new java . lang . String [ ] { } ; java . lang . String [ ] declarations = new java . lang . String [ ] { } ; java . lang . String [ ] testCode = new java . lang . String [ ] { } ; java . lang . String [ ] extra ...
org . junit . Assert . assertEquals ( "" , result )
testPermute ( ) { org . nd4j . autodiff . samediff . SameDiff sd = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , ...
org . junit . Assert . assertEquals ( expOut , result . eval ( ) )
testPositiveInfinity ( ) { org . apache . commons . math4 . linear . RealMatrix m = org . apache . commons . math4 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY , Double . POSITIVE_INFINITY } } ) ; java . lang . String expected ...
org . junit . Assert . assertEquals ( expected , actual )
testWriteLines_OutputStream ( ) { final java . lang . Object [ ] data = new java . lang . Object [ ] { "hello" , new java . lang . StringBuffer ( "world" ) , "" , "this<sp>is" , null , "some<sp>text" } ; final java . util . List < java . lang . Object > list = java . util . Arrays . asList ( data ) ; final org . apache...
org . junit . Assert . assertEquals ( expected , actual )
testSchemaValidation ( ) { io . cdap . cdap . etl . api . Transform < io . cdap . cdap . api . data . format . StructuredRecord , io . cdap . cdap . api . data . format . StructuredRecord > transform = new io . cdap . plugin . Compressor ( new io . cdap . plugin . Compressor . Config ( "a:GZIP" , io . cdap . plugin . C...
org . junit . Assert . assertEquals ( io . cdap . plugin . CompressorTest . OUTPUT , mockPipelineConfigurer . getOutputSchema ( ) )
testSerializeUnsignedPossibleLongToString ( ) { @ discord4j . common . jackson . PossibleJson class Pojo { @ discord4j . common . jackson . UnsignedJson discord4j . common . jackson . PossibleLong unsignedLong = discord4j . common . jackson . PossibleLong . of ( java . lang . Long . parseUnsignedLong ( "922337203685477...
org . junit . Assert . assertEquals ( expected , result )
shouldNotCrashOnBrokenSymlink ( ) { com . facebook . buck . testutil . integration . ProjectWorkspace workspace = com . facebook . buck . testutil . integration . TestDataHelper . createProjectWorkspaceForScenario ( this , "sdk-discovery-symlink" , temp ) ; workspace . setUp ( ) ; java . nio . file . Path root = worksp...
org . junit . Assert . assertThat ( actual . size ( ) , org . hamcrest . Matchers . is ( 0 ) )
testPrettyPrint_2 ( ) { org . audit4j . core . util . StopWatch fixture = new org . audit4j . core . util . StopWatch ( "" ) ; fixture . setKeepTaskList ( true ) ; fixture . start ( "" ) ; halt ( ) ; fixture . stop ( ) ; java . lang . String result = fixture . prettyPrint ( ) ; "<AssertPlaceHolder>" ; } prettyPrint ( )...
org . junit . Assert . assertNotNull ( result )
testStr2Pinyin ( ) { java . util . List < java . lang . String > parseStr = org . nlpcn . commons . lang . pinyin . Pinyin . unicodePinyin ( str ) ; System . out . println ( parseStr ) ; "<AssertPlaceHolder>" ; } size ( ) { return hm . size ( ) ; }
org . junit . Assert . assertEquals ( parseStr . size ( ) , str . length ( ) )
testGetName ( ) { org . pb . x12 . Loop loop = new org . pb . x12 . Loop ( new org . pb . x12 . Context ( '~' , '*' , ':' ) , "ST" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( "ST" , loop . getName ( ) )
testGetAdHocDataProviderForWriteAfterRead ( ) { org . apache . hadoop . fs . Path testPath = org . mrgeo . hdfs . utils . HadoopFileUtils . createUniqueTmp ( ) ; try { org . mrgeo . data . adhoc . AdHocDataProvider dp = org . mrgeo . data . DataProviderFactory . getAdHocDataProvider ( testPath . toString ( ) , AccessMo...
org . junit . Assert . assertNotNull ( dp )
testGCmoreCommits ( ) { writeTrashFile ( "a.txt" , "a<sp>couple<sp>of<sp>words<sp>for<sp>gc<sp>to<sp>pack" ) ; writeTrashFile ( "a<sp>couple<sp>of<sp>words<sp>for<sp>gc<sp>to<sp>pack<sp>more<sp>2" 1 , "a<sp>couple<sp>of<sp>words<sp>for<sp>gc<sp>to<sp>pack<sp>2" ) ; writeTrashFile ( "c.txt" , "a<sp>couple<sp>of<sp>words...
org . junit . Assert . assertTrue ( ( ( res . size ( ) ) == 7 ) )
testMapUserTaskInEventSubProcess ( ) { org . camunda . bpm . model . bpmn . BpmnModelInstance testProcess = org . camunda . bpm . engine . test . api . runtime . migration . ModifiableBpmnModelInstance . modify ( ProcessModels . SUBPROCESS_PROCESS ) . addSubProcessTo ( "subProcess" ) . triggerByEvent ( ) . embeddedSubP...
org . junit . Assert . assertThat ( migrationPlan )
testReverseInsertNormalizationNecessaryMoreBasesSecond ( ) { de . charite . compbio . jannovar . reference . TranscriptPosition txPos = new de . charite . compbio . jannovar . reference . TranscriptPosition ( infoReverse , 17 , PositionType . ZERO_BASED ) ; de . charite . compbio . jannovar . reference . GenomePosition...
org . junit . Assert . assertEquals ( expectedChange , updatedChange )
testSimpleBulkImporterDirect ( ) { final org . kiji . mapreduce . KijiMapReduceJob mrjob = org . kiji . mapreduce . bulkimport . KijiBulkImportJobBuilder . create ( ) . withConf ( mConf ) . withBulkImporter ( org . kiji . mapreduce . testlib . SimpleBulkImporter . class ) . withInput ( org . kiji . mapreduce . input . ...
org . junit . Assert . assertTrue ( mrjob . run ( ) )
testGetMapping ( ) { org . mockito . Mockito . when ( eu . europeana . repox . rest . client . accessors . MappingsAccessorTest . response . getStatus ( ) ) . thenReturn ( 200 ) ; org . mockito . Mockito . when ( eu . europeana . repox . rest . client . accessors . MappingsAccessorTest . response . readEntity ( pt . ut...
org . junit . Assert . assertNotNull ( mapping )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . RecentLayoutRevision . class , _dynamicQueryClassLoader ) ; dynamicQuery . setP...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
getHeaderFieldMatchesCaseInsensitive ( ) { final int status = 200 ; final byte [ ] body = new byte [ ] { 1 } ; final byte [ ] errorReason = new byte [ ] { } ; final java . util . Map < java . lang . String , java . util . List < java . lang . String > > headerFields = new java . util . HashMap ( ) ; final java . lang ....
org . junit . Assert . assertThat ( testValues , org . hamcrest . CoreMatchers . is ( expectedValues ) )
testAttributeFailRepeatedArgs ( ) { java . util . logging . Logger logger = fLogger ; "<AssertPlaceHolder>" ; try ( org . eclipse . tracecompass . common . core . log . TraceCompassLogUtils . ScopeLog log = new org . eclipse . tracecompass . common . core . log . TraceCompassLogUtils . ScopeLog ( logger , java . util ....
org . junit . Assert . assertNotNull ( logger )
testSkipImporterHttp ( ) { io . bit3 . jsass . importer . Importer importer = spy ( new com . github . mickleroy . aem . sass . impl . FileImporter ( mockCompilerContext , com . github . mickleroy . aem . sass . impl . FileImporterTest . ROOT_SASS_FILE ) ) ; java . util . Collection < io . bit3 . jsass . importer . Imp...
org . junit . Assert . assertNull ( imports )
nary_nin_string_array_returns_false_when_field_value_does_not_match_expression ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'field':'field6.nf1','op':'$in','values':['blah','yada','nothere']}" ) ; com . redhat . lightblue . ...
org . junit . Assert . assertFalse ( ctx . getResult ( ) )
testCacheGet ( ) { final java . lang . String key = "foo" ; final org . apache . hc . client5 . http . cache . HttpCacheEntry value = org . apache . hc . client5 . http . impl . cache . HttpTestUtils . makeCacheEntry ( ) ; org . mockito . Mockito . when ( impl . digestToStorageKey ( key ) ) . thenReturn ( "bar" ) ; org...
org . junit . Assert . assertThat ( resultingEntry , org . apache . hc . client5 . http . impl . cache . HttpCacheEntryMatcher . equivalent ( value ) )
testBuildSuccessResponse ( ) { com . google . gson . JsonObject response = com . cognizant . devops . platformservice . rest . util . PlatformServiceUtil . buildSuccessResponse ( ) ; java . lang . String responseStatus = response . get ( PlatformServiceConstants . STATUS ) . getAsString ( ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( PlatformServiceConstants . SUCCESS , responseStatus )